Home › Forums › TimelineFX Module › little help › Re: Re: little help
Hello, I changed quite a few things which I marked with remarks. The main thing was to put a new field in the ship type to contain the thruster effect. You can then use this to update its position in the UpdateState Method. I also changed the timing code a bit. Logic updates should go in the for..next loop and rendering should happen outside. Take a look at this example: http://www.rigzsoft.co.uk/index.php?option=com_content&view=article&id=25 for a basic timing example using the tweener mod. If you understand that then you can add tweening to you spaceship as well.
It is is very OO and can be tricky to get used to but very much worth it in the end. I recommend the basic game tutorial here on this site: http://www.rigzsoft.co.uk/index.php?option=com_content&view=category&id=11&Itemid=11 and I also wrote another tutorial about making an asteroids game that actually uses the thruster effect. I wrote that for the Blitzmax coder magazine but I’ll attach a copy here in this thread if you missed it, I’ll just go dig it out…