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

Another Danmakufu Tutorial?

Pages: << < (3/15) > >>

Stuffman:

Oh cool, you even explained sin/cos in a clear way.

Not really a significant gripe but the angle shown in your image would actually be 300 or -60 degrees in Danmakufu, that might confuse some people.

Naut:


--- Quote from: Stuffman on April 25, 2009, 12:38:11 AM ---Not really a significant gripe but the angle shown in your image would actually be 300 or -60 degrees in Danmakufu, that might confuse some people.

--- End quote ---

I actually just noticed that. Gonna redo the images to compensate for Danmakufu's needlessly different coordinate grid.

Aaaand fixed.

Hat:

Yeah, I would very much like to at least know the way the danmakufu coordinate grid works. I hate having to type up some polar absolute pattern, and then it shoots, like... ninety degrees to where I wanted it to go. >_>

I'll take the character script thing as a no, then.

Stuffman:

The grid works pretty simple actually, starts at 0,0 in the upper left corner. Increase x to go right, increase y to go down.

Degrees start at 0, pointing to the right, going clockwise. So hard right is 0, down is 90, left is 180, up is 270.

And I was actually thinking I would try to tackle a tutorial on how to make a player script.

Naut:

You're free to create character scripts if you want, and we'll help in any way we can.

The Danmakufu coordinate grid is the exact same as a cartesian plane, except the positive y direction points downwards. So the point (0, 0) is the top left of the gaming window, (448, 0) is the top right, (0, 480) is the bottom left and (448, 480) is the bottom right.

Note that your hitbox can only be +-32 pixels inside of this rectangle for the x directions and +-16 pixels for the y directions, so you can never actually touch the sides of the playing field.



And damn, Stuffman beat me to the explanation. Oh well.


--- Quote from: Stuffman on April 25, 2009, 01:21:47 AM ---And I was actually thinking I would try to tackle a tutorial on how to make a player script.

--- End quote ---

Please do this. It would be nice to know how to create proper player scripts.

Pages: << < (3/15) > >>

Go to full version