~Hakurei Shrine~ > Rika and Nitori's Garage Experiments

Oh god acceleration

Pages: << < (2/4) > >>

Suikama:

Something slightly related yet unrealted: If I make a bullet fired at a speed of 30 every single frame, instead of firing the shots, they become fixed onto the screen. I found this out when creating my silly danmaku paranoia card. When I set the middle aimed stream to be fired too rapidly and to quick, then they stopped moving altogether.

Naut:

Haha, that's because of how speed works in Danmakufu. What velocity to Danmakufu is how many pixels you want to shift the bullet's position to for the next frame, towards the angle you specified. So since you're shifting the bullet 30 pixels every frame, it skips thirty pixels. The reason why they look stationary is because you spawn bullets everty frame, so every frame it draws the bullets on those same spots.

Here's a test to prove my point. Create a bullet every frame with 99 speed and GetAngleToPlayer. Move around. The bullets will follow you. Get close to the bullet. You'll get insane amount of graze.

Hat:

So as it turns out (figured it out the next day, it came to me when I woke up, lol), what I was doing wrong was I was trying to feed a many-decimal number into a frame count. I used rand instead of rant_int when I was making the little wee modifier for the clouds falling down, so I guess that made the game's brain go blooie.

I've kind of given up on this card, though. It was a neat thought in concept, but I cannot be troubled to think of a way to make it possible (I reduced the number of jumps to three, and cut out the small white bullets entirely, but there are still times when you are thoroughly trapped).

Aah, I'm starting to get bored of Danmakufu... I need ideas. :(

Naut:

I've taken a while to sit and think about this, but I can't seem to figure it out. Why would it work fine on my computer? What a pissoff that is.

Also, we all go through times where coding just isn't as rewarding as it once was, and you need a bit of a break. If you do enjoy it however, you'll come back to it in no time, so no worries. Coming up with spellcard ideas is always the hardest part about coding in Danmakufu.

Aside from, of course, coding in Danmakufu.

[Single manly tear]

Hat:

Well, my computer is an award-winning retard, for one, so that might have something to do with it (which is why I have trouble thinking of new cards, because I always VASTLY underestimate the maximum number of bullets I should have on the screen at once).

I have a couple ideas for weather-themed danmaku, but only a couple (obviously the one here was a test-drive of one of the ideas, which didn't quite work out the way I planned, in that it was impossible XD) Also, I keep getting stalled with the Yuka PC project, because I always strive to accomplish things that cannot possibly manifest in Danmakufu.

Pages: << < (2/4) > >>

Go to full version