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! / multiple bullets without multiple sprite??

Author
Message
2D Analyst
AGK Developer
21
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 23rd Oct 2006 21:52
I never tried to create a 2D game with multiple bullets before, but I would think that each bullet would have it's own sprite number. So for example:

If I want to shoot 10 bullets showing all at once on the screen, does it mean that I have to create 10 sprites? If so, then this is slow down the screen frame rate. What about using arrays?

www.simpoware.com
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 24th Oct 2006 00:35
It just depends on what you're using. Pro can handle a lot more sprites without getting bogged down than Classic.

You can use arrays to store the information but the sprite coordinates can easily be found out by the commands "sprite x(spritenumber)" and "sprite y(spritenumber)".

Login to post a reply

Server time is: 2025-05-15 00:47:12
Your offset time is: 2025-05-15 00:47:12