The Daily Click ::. Forums ::. Klik Coding Help ::. Monsters with their own individual events.
 

Post Reply  Post Oekaki 
 

Posted By Message

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
31st January, 2008 at 17:06:19 -

Actually, I just tested it out a little further, and hit it over the head with a stick.

It looks like the problem IS NOT with picking an object at random, but rather how its applying the events on the same queue as the "Start loop 1 for x loops" event.

Even though I have the "Set object flag 1 off" listed BEFORE the start the loop action, it doesn't seem to occur like that. Either its happening not at all, at some funky different time, or only affecting a single object, because if I simply create a new event:

*Always
=Set object flag 0 off

and put it on top of the stack, it will solve the problem. According to the structure of TGF, it shouldn't operate like that, but it seems like the fast loop object is causing some funny business.




I know I had used this "Choose an object at random inside of a loop to iterate through all of them" approach inside gridquest, and it sure works there. So it must just be something funny with fastloop. I've found its usually good practice to put a loop initalization event seperate from the rest, or it might screw up the order.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
31st January, 2008 at 17:10:16 -

ok this is kinda screwy

if I put that ALWAYS event before the loop is initalized, it works fine, and if I put it AFTER the loop, it works fine (resetting the flags either way)



however, if I put it BEFORE the loop is initalized, but in the same horizontal row, it will not work. It seems that for some reason, activating a loop will all the object specifiers in that condition for no apparent reason. Now thats odd stuff

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

eyeangle



Registered
  12/06/2003
Points
  1683
5th February, 2008 at 02:02:26 -

Hey Axel,

Did you have any luck fiddling around with the movement? Any luck finding a reason, or fixing the reason 2 or more baddies can't be placed.

Thanks.

 
theonecardgame.com
   

Post Reply



 



Advertisement

Worth A Click