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! / Weapon Change

Author
Message
Punisher
21
Years of Service
User Offline
Joined: 20th Mar 2004
Location:
Posted: 11th Nov 2004 06:53
I have my ship moving and firing more than one bullet, but have problem when changing weapons. I want to be able to change the weapon so the previous bullets fired to not change their image, but the next bullets fired will. I have tried to do so using a for loop and sprite exist to get the number of the bullet, but have no look because when i change weapons by pressing 1, 2 or 3 (1 being defult)the bullets all look the same.

please let me know what i am doing wrong or show me some code which i can alter for my game. All suggestion and comments welcome

Frank Castle is Dead
dj chainz
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: England
Posted: 12th Nov 2004 01:11 Edited at: 12th Nov 2004 01:15
Add an extra dimension your bullets array (which is how i asssume u hav done it, having not read the source) and make that record the bullets type. Simple.

I am the lead programmer at red spark studios
I also have a blog on how to make a game engine
http://www.dbgame.blogspot.com

Login to post a reply

Server time is: 2025-05-16 11:25:26
Your offset time is: 2025-05-16 11:25:26