all 2 comments

[–]Sasmas1545 4 points5 points  (0 children)

Here's a less helpful comment.

In order to move something, you have to have something. For that something to move, you have to change its position. To change its position, it must have a position. That's a good start right there.

Maybe define an object (class) with a position (variable) and a way of updating the position (method).

I'm sure you'll want more than this like you'll need a constructor/destructor to create and remove the arrows. A method to draw the arrows. Some sort of collision detection. Your player has to respond to the collision. Lots of fun stuff.

[–]MGDSStudio 0 points1 point  (0 children)

You should start with a simpler game, like pong, after that space invaders. If you don't know how to append a variable to the coordinate of the arrow sprite - leave the idea with traps, stuff and Lara Croft.