The Daily Click ::. Forums ::. Klik Coding Help ::. Fast loop duplicate problem *gasp*
 

Post Reply  Post Oekaki 
 

Posted By Message

JetpackLover



Registered
  01/03/2007
Points
  212
21st April, 2010 at 13:49:16 -

I am going to cry soon

I have been trying for the past few days to get this working with my fast loop modified David N engine.

Here's my example file

http://mfa.aquadasoft.com/upload/1271654122-Floop_Enemy_test_mdsx_Clickteam_forum.mfa

So please look into your heart of hearts and help out this poor fool.

My first attempt

Image

FAILURE

Second attempt

Image

My second attempt was based off of this

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.

Any tips? Thanks.

Just start the 2nd loop from the "on loop" of the first. Like this:

Always
-Start loop "outer loop"
On loop "outer loop"
-start loop "inner loop"
On loop "inner loop"
-do stuff with both inner and outer loop indexes

Don't put two "on loop" conditions on the same event.


I really thought that was going to work but alas not so.

So what am I missing? Does anyone have an example of this working using David N's engine or fast loop engines like it?

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover

   

Post Reply



 



Advertisement

Worth A Click