TIMER PROBLEMS

START_______________________________________________|Do=RandomInRange(1,16) to variable Result

The timer “Z1” is greater than 0.1 seconds_________________ | Do=322;= 82 to the position of Zombie_01
Variable Result is = 4___________________________________ |Reset the timer “Z1”

The timer “Z2” is greater than 0.1 seconds_________________ |Do=28;= 54 to the position of Zombie_01
Variable Result is = 8____________________________________|Reset the timer “Z2”

ETC
ETC
ETC

After the Sprite is placed on the screen background for 2 seconds, I want that sprite
to disappear for 6 seconds before it appears at a different screen position.

Sorry I cannot seem to make this happen, any help would be appreciated.

You need a condition to check if the Sprite is hidden (opacity, hidden condition, a variable), for example using opacity:

[code]Conditions: Sprite opacity is > 0
Timer “hide_show” of Sprite is greater than 2 seconds
Actions: Do - 255*TimeDelta() to the opacity of Sprite

// sub-event
Conditions: Sprite opacity is <= 0
Actions: Reset timer "show_hide" of Sprite

Conditions: Sprite opacity is < 255
Timer “hide_show” of Sprite is greater than 6 seconds
Actions: Do + 255*TimeDelta() to the opacity of Sprite

 // sub-event
Conditions: Trigger once
Actions: Move to a random position

// sub-event
Conditions: Sprite opacity is >= 255
Actions: Reset timer "show_hide" of Sprite[/code]

Not related, just a tip: Instead hardcoding random positions you can add a helper object to work as spawn positions, the object type doesn’t matter (a sprite, a text, whatever), call it “Spawn” and locate them in your random spawn positions (for example add an instance at 322;82 and another at 28;54), then you can just do:

Conditions: Conditions to move Sprite to a random position Actions: Pick a random Spawn Do = Spawn.X() ; = Spawn.Y() to the position of Sprite