Hi again
(Sorry for my bad english)
I have got two questions for you!
1)How to make an arrow? I'm trying to do a clone of
Ninja Rampage and i want to make the archer :D
Imho the creators made an "arrow" movieclip with the arrow in which frames have animations and motion of the arrow. They didn't describe the parabolic motion of the arrow by code, but graphically. Is this the easiest solution? Consider that also in my game enemies will launch arrows only horizontally.
2)Write an AI for the game. Well.. i don't know anything about ai :D
But it shouldn't be so difficult.
Normally the enemy is in "idle state", he turns himself sometimes. When he see the player, he goes in state "allert". If the enemy is close, he goes in state "Attack" else if the player hasn't escaped vertically, he goes in the state "follow". In case the player has escaped vertically, he returns in "allert" state. Correct?
The problem is:
-How to know when an enemy see the player?
2b)I want the player attacks enemy without pressing a key. If he gets close to an enemy
, he suddendly attacks. But with this method enemy won't ever kill the player :D
What do you suggest me? Should i give enemies a bigger range of attack?
Thanks, MaTX.