"Do Every" Problem !! [URGENT]

I have a scene event that creates an actor every "X" seconds and also an event that decreases "X" by 0.3 every 4 seconds . The problem is that the actor gets created every 6 seconds only. ( Default value of "X" is 6 ) What seem's to be the problem ? ( Screenshot attached ) Please reply fast , it's for a time - sensitive game !

Zen - Newgrounds - goo.gl/fd4mU

Shoot me a PM or something..

chrizt

  • Posts: 345
the problem is.. the X you put up there is not updating when the X value changed.. try to put it on custom event > do every X > update the X . i believe the X will be updated on the do every "X"
need help with behavior? game design? graphic design? just contact me
skype : christian.atin
email : christianatin27@gmail.com

djip123

  • Posts: 987
You have to put it in a when update event :-)
Go check out my website: http://gamecow.net

I'm still confused ?
Zen - Newgrounds - goo.gl/fd4mU

Shoot me a PM or something..

djip123

  • Posts: 987
If you use the "Do every X seconds" event, Then if you update the number attribute it will not update the "Do every X seconds" time set, the event will still repeat after the first number the attribute was set to.
BUT if you use the "When updated" event, then if you update the Attribute number, then it will also change in the Do every X seconds, but only under the Update event.
Go check out my website: http://gamecow.net

chrizt

  • Posts: 345
dont use it in "when update" it will start a new loop for every sec.
need help with behavior? game design? graphic design? just contact me
skype : christian.atin
email : christianatin27@gmail.com

djip123

  • Posts: 987
dont use it in "when update" it will start a new loop for every sec.
Woops yea, my fault, it will start a new Do every event 50 times in a second...
I will try to find another way :)
Go check out my website: http://gamecow.net

chrizt

  • Posts: 345
the point is.. that X will be updated as long the do every X sec is not the main event.. example.. when created>>do every X sec..(will be updated), when A happens>>do every X sec..(will be updated),etc.. just don't create a do every sec.. you know what i mean?? use block to create that "Do every .. sec"
need help with behavior? game design? graphic design? just contact me
skype : christian.atin
email : christianatin27@gmail.com

@chrizt - Can you PLEASE explain ?
Zen - Newgrounds - goo.gl/fd4mU

Shoot me a PM or something..

chrizt

  • Posts: 345
i am sorry if that is not clear enough for you.. but its my best explanation.. :( just add me on skype if you want maybe i can give a better explanation by chat..
need help with behavior? game design? graphic design? just contact me
skype : christian.atin
email : christianatin27@gmail.com

I used WHEN CREATED --> DO EVERY "X" SECONDS , still doesn't work.
Zen - Newgrounds - goo.gl/fd4mU

Shoot me a PM or something..

djip123

  • Posts: 987
Nothing works XD
Maybe search on the forum. Maybe someone knows :-)
Go check out my website: http://gamecow.net

chrizt

  • Posts: 345
well if this can help you.. put that block in always.. its a self created periodic task by me.. the do every will only run when the timer is so low that you may want it to not go any lower..
need help with behavior? game design? graphic design? just contact me
skype : christian.atin
email : christianatin27@gmail.com