Thanks for the tips, — I'm still learning.
I�ve an idea and and it worked but I don't know if is the better solution:
Rock onDestroyed > System > Set randomNun to random(11)
(sub-event) System > randomNum>=8 > Explosion > Spawn bulletPackage on layer 1(image point 0)
Very nice example, — Thank you.
I would like to generate a explosives package randomly each time the player exploded a stone. I thought of creating a spawn from the sprite with the explosion (fire+smoke animation), but would have to be random, ie, the explosives package only appears in some explosions. Someone would have an idea of how to do this?
Great example podpathos. Thank you very much.
How can I do to apply this effect to sprite that was created by the system with a bullet behavior.
Thanks again
Sorry, I just tested it and deleted then to look for another solution. But as I was suspicious, I decided to post this question on the forum. I tested several times and the time interval between the object was always the same. However, the command "random" worked very well with the position on the screen.
Hi Paradox,
This I already knew. The problem is that this way I have to create the command for each sprite and I would like to create a general command to verify all objects at once
Develop games in your browser. Powerful, performant & highly capable.
One problem: I didn?t see this variable in the comparable variables option of System event. Maybe because it?s a local variable?
Very clear. Thank you, justifun
I intend to use a different enemies with the same local variable (numLife). I would like to check the life bar of these sprites at sigle time (eg. enemyObject.numLife) . How can I do this?
Thanks
I?m using the random command to create enemies:
System > every random (1.5, 5.0)seconds > create object > enemy1 > layer 1 > X= player.X + 1500 > Y=random(100, 650)
I?ve two issues:
Thanks for any help
Sprite: Set animation frame to Sprite.AnimationFrame +1 or Sprite: Set animation frame to Sprite.AnimationFrame -1
Sprite: Set animation frame to Sprite.AnimationFrame +1
or
Sprite: Set animation frame to Sprite.AnimationFrame -1
Thank you very much.
Member since 29 Oct, 2012