for those from the shooting question, yes, same guy. Anyway, I need to know how to make enemies come at me. here is the layout
:= wall
G=Shooter/player
+=where I want the enemies to come from
:
: +
: +
: G +
and i probably want it to be like a swarm of them, but one enemy at a time can be fine,
Offline
ummm... to me it looks like an overworld so it would be:
[forever]
[point towards {player}]
[if <(distance to {player}) < (100)>]
[move (5) steps]
[else:]
[put the shooting for enemy here]
if its scrolling convert [move (5) steps] to:
[change scrollX by ( ( (sin of (direction)) * ((speed) * (-1) ) )]
[change scrollY by ( ( (cos of (direction)) *((soeed) * (-1) ) )]
Last edited by dingdong (2008-08-25 18:11:30)
Offline