how I do to make every enemy jump in random ?. Not all enemies at the same time. Thanks
http://www.mediafire.com/download/fnm0632jury2rn9/enemy+jump+random.capx
Develop games in your browser. Powerful, performant & highly capable.
You have to use the "For each" loop, as in "For each enemy <pick enemy instance name/family name>" every random interval ---> jump code.
Could you fix the capx?
I do not get it working. I need more help
add timer behavior
on enemy create: start timer"jump" random(2,4) (once)
for each enemy
ontimer "jump" :simulate jump and start timer "jump" random(2,4) (once)
Something like this maybe?.
https://dl.dropboxusercontent.com/u/60803633/test.capx
Thanks . The enemies are more better