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.

2D All the way! / Sprite Background and Array issues

Author
Message
Swampert
15
Years of Service
User Offline
Joined: 17th Dec 2008
Location: Somewhere in the Interwebs
Posted: 25th Dec 2009 21:49
Hello, I'm making a 2D side scrolling shooter and I'm having a slight problem with the drawing order of the background and the bullet shooting process.

My background (which scrolls perfectly using the SET SPRITE TEXTURE COORD command) draws first each time, over top of the the ship sprite and all other sprites that are drawn. I've tried using SET SPRITE PRIORITY However that does not work.



and this is the main loop


For the bullets, I want to be able to only have 3 bullets on the screen at once, and only shoot if you have not shot a bullet in a certain time

These are my bullet handling sub-routines


Thanks in advance
Rocko

Login to post a reply

Server time is: 2024-03-29 12:10:58
Your offset time is: 2024-03-29 12:10:58