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! / Shoot'em up Rapid Fire

Author
Message
Tribasic
20
Years of Service
User Offline
Joined: 10th Mar 2006
Location:
Posted: 7th Apr 2006 04:20
Hi,

I'm attempting to make an old school space shooter and I had a question about making a 'Rapid Fire' stream of bullets. This will be a top down shooter and my problem is, when the player sprite is moving up and down in 'Y', my stream of bullets will tend to compress or expand as the ship moves. I have looked at a few space shooters, and I think the bullets are moving with the ship, in 'Y'.

At any rate, I don't really notice this problem on real arcade games. It always looks like a solid stream of bullets. I have tried adding the value that the player's ship moves to the 'Y' value of the bullets, but I can't make it work properly. Here is some code on how I'm doing it now. Maybe I'm doing this wrong. Let me know what you guys think. Thanks.

BlinkOk
22
Years of Service
User Offline
Joined: 22nd Oct 2003
Location:
Posted: 7th Apr 2006 05:17
i think the speed difference between your sprite and the speed of the bullet is too small. mabey try makin the sprite speed 2 rather than 5. or the bullet speed 20 rather than 10

P4 2.8Ghz, 2Gb, 128Mb Radeon Pro, Dark Basic PRO
Tribasic
20
Years of Service
User Offline
Joined: 10th Mar 2006
Location:
Posted: 7th Apr 2006 05:51
Hey BlinkOk!

I tried changing the bullet speed, and I must say, I think it looks a lot nicer. Thanks for taking a look at my code!!

TriBasic

Login to post a reply

Server time is: 2026-07-01 21:22:24
Your offset time is: 2026-07-01 21:22:24