Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Image/sprite help please

Author
Message
james2006
17
Years of Service
User Offline
Joined: 6th Oct 2006
Location:
Posted: 6th Oct 2006 21:48
I have 2 images created of a 'space invader'. However i cannot seem to get them to change from one to the other as in the real game. How do i go about this?

thanks for any help, all appreciated.
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 7th Oct 2006 00:28
If they are two images-


or if you make them into one image, across from each other-



I haven't tested the code, but it should work.
I don't know which is faster, using one image or two.

james2006
17
Years of Service
User Offline
Joined: 6th Oct 2006
Location:
Posted: 9th Oct 2006 00:53
thanks very much, just wondering if you could help me out with this:

i need to get my gun to move to the left and right when the arrow keys are pressed, but cant seem to be able to do it.

Login to post a reply

Server time is: 2024-09-25 09:28:27
Your offset time is: 2024-09-25 09:28:27