You must have a scrolling variable of some sort, maybe called ScrollX or something like that. Find the values of ScrollX when you want the enemy to be visible and set up script on the character something like this:
[blocks]
<when green flag clicked>
<forever>
<if><< <( <{ ScrollX }> <>> xxx )> <and> <( <{ ScrollX }><<> yyy )> >>
<show>
<else>
<hide>
<end>
[/blocks]
where "xxx" is your minimum value and "yyy" is the maximum value of ScrollX you want the enemy to appear. I'm no expert on platform games, so maybe there is a better way out there, but I think that would work.
Last edited by Paddle2See (2008-04-24 05:07:40)
Offline