~Hakurei Shrine~ > Rika and Nitori's Garage Experiments
Aimed bullets not killing
(1/2) > >>
Seian Verian:
So... Yeah. In a simple script I'm working on, I made this stream of aimed bullets, type23. They're moving at 20 pixels per frame, and I'm sitting in the middle of them, not moving. Not dying either, the only thing that happens is that my graze score goes up to ridiculous levels. That's... Weird. This ever happen to anyone else?
MCXD:

--- Quote ---They're moving at 20 pixels per second
--- End quote ---

There's your problem. Never, Ever, Use any velocity in Danmakufu above 8 or so, it glitches and doesn't work.

EDIT: Wait... 20 pixels per second? Or per frame? If its per second, then you are only using speed 0.333?
Seian Verian:
Er, yeah, per frame. So... Basically, Danmakufu doesn't like fast bullets? XD
MCXD:

--- Quote from: ShiningDrake on August 20, 2009, 07:55:14 AM ---Er, yeah, per frame. So... Basically, Danmakufu doesn't like fast bullets? XD

--- End quote ---

No offense, but 20 per frame should be avoided even IF Danmakufu could handle it.

The problem is, or at least from what I know, that with a speed set at 20, the bullet move 20 pixels along every frame. This means that in between each frame, the bullet would 'jump' 20 pixels. If your character happens to be standing in the space between the jump, then Danmakufu won't recognize the prescience of the player, as it only does collision detection for the bullet's current position (0, 20, 40, 60, etc).

In other words, anything above 8 or so usually creates 'gaps' which the player can stand in and ultimate have the bullet "skip over them".
Helepolis:
Oh this is quite interesting to know for myself. I am not using any bullets at speed 10 but good to keep in mind. Would this affect also the Laser01 shot? As lasers are lenghty bullets.
Navigation
Message Index
Next page

Go to full version