January 20th, 2014, 09:19 AM
How to draw sprite and make it move with keyboard keys
I am new to Game development .I have to use XNA with Visual studio 2010 for this game development and i am using c# for the programming.
I have drawn a sprite and it is moving without any human control with keybord keys. It is just moving and if it hits any boundary then it will bounce. The sprite is not flipping also.
I need to Draw the sprite(a helicopter image) on the screen and make it move around on its own. If the sprite is about to leave the screen, it should “bounce” off the edges and head in the opposite direction. Also,
make sure the helicopter faces the direction it is traveling. Then after that i have to use the arrow keys on the keyboard to control the movement.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!