The Daily Click ::. Forums ::. Klik Coding Help ::. Top Down Movement Stop Loop not working.
 

Post Reply  Post Oekaki 
 

Posted By Message

Logiq



Registered
  09/04/2007
Points
  120
1st July, 2009 at 21:16:38 -

I tried searching through articles and topics to find out why my loop won't stop when I tell it to. Here is a screenshot of the my code.

*NOTE* I forgot to put on the picture that loop P1C is looping 100 times.

[URL=http://img31.imageshack.us/i/loopissue.png/][IMG]http://img31.imageshack.us/img31/6707/loopissue.th.png[/IMG][/URL]

My problem is that when the detectors are no longer overlapping the obstacle that the loop does not break like it is supposed to.
Any help will be greatly appreicated.

 
Hello guys! I'm New! -- I've been new for a year now...haha

Logiq



Registered
  09/04/2007
Points
  120
1st July, 2009 at 22:38:14 -

Nevermind... I never figured out what was wrong, so I went with another approach. I am now using the move safely object.

 
Hello guys! I'm New! -- I've been new for a year now...haha

MBK



Registered
  07/06/2007
Points
  1578

VIP Member
2nd July, 2009 at 06:29:47 -

The answer most likely lay within your alterable values or counters that actually act upon the object within the loop.

That's just fancy talk for "put your alt val or counter that controls the walking at 0"
Add that to your stop loop line.

That's my guess anyway, but without seeing the whole story (the full source code), I don't know, cause other events may be conflicting.


 
Click Me! http://www.create-games.com/project.asp?view=main&id=1444

http://www.mediafire.com/download.php?aoo1dnnlq5i

Blood of the Ancient One, Seen only as Shadow, Faster than Lightning, Fierce as the Greatest Dragon, Nearly Invisible, Floating in a Dream, Entered through the Demon Door, Destroyer of Evil in a Realm with a Red Sky Scarred, Who could I be ?
   

Post Reply



 



Advertisement

Worth A Click