Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Animation
- - By kaos86 Date 2012-02-06 03:25
Hello, everyone. I'm new to this website and I've been coding for sometime(python and ruby). I want to make the character animation longer with walking animation. Can someone give me an example on how to do this?
Parent - By jlnr (dev) Date 2012-02-06 07:48
Welcome!

If you look at the included CptnRuby example, you can see how to create animations with Image::load_tiles and some arithmetic. You can e.g. add more frames to the animation and then give a higher operand to the modulo operator %. It's all about modulo operators. ;)
Up Topic Gosu / Gosu Exchange / Animation

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill