I my game that I am making, there are going to be enemies. I want the same enemy to show up on different backgrounds. For example, after I defeat the enemy on one background, I want him to come back on another background. I also only want him on backgrounds 1-6. How do I go about doing this?
Offline
If you make your enemies sprites, you can <show> or <hide> them on any background you choose. The scripts you write for the background or the sprites will have to control which enemy/background combinations you show at any given time.
Offline
CODE FOR ENEMY............
[blocks]
<when green flag clicked>
<forever>
<if> <( <{ BACKGROUND }> <=> 1 )>
<show>
<else>
<if> <( <{ BACKGROUND }> <=> 2 )>
<show>
<else>
<hide>
<end>
<end>
<end>
[/blocks]
CODE FOR STAGE.....................
[blocks]
<when green flag clicked>
<forever>
<set{ BACKGROUND }to( background# [You'll find it in Looks]
<end>
[/blocks]
Offline