I recently started building a platform game engine based on DavidN's tutorial: "Custom Platform Movement".
In my game I have a "Rock" object that simulates gravity by using fast loops to make it fall down perfectly on any platform.
Everything was working well until I felt the need for using multiple instances of the same "Rock" object.
After much research I found out about the spread value function to give each instance of my Rock a specific ID and then running a fast loop named "IDloop" and comparing the ID of my rock object with the index of "IDloop".
My problem is that I need to have a loop run within another loop and I don't understand how TGF 2 manages that... I can't get my gravity loop to run individualy for each rock. :mad:
Any tips? Thanks.