Mega Man styled air control

megaman9rulez

New member
I want to make it so that you can control your aerial momentum like in Mega Man, like how you can nudge the character midair at any point as many times as you want in their ascent/descent. How can you go about this? (I'm very new to scripting)

These are the control options I've added, and while they're close, after letting go of the button you lose the ability to push him any further.
air_control jump_turn jump_x_move jump_x_adjust jump_x_stop jump_y_stop
jump_height 6
 
Welcometo the community @megaman9rulez. It's not difficult to do this with scripting, but you shouldn't need to with jump_x_move enabled. It is supposed to already do what you're asking, so I may have loused something up when I coded it. I'll take a look.

DC
 
if it helps, i made a video that shows what i hope to do.


Oh I know. I'm familiar. I looked at the engine code and see the mistake I made. There is indeed a doughnut hole in the logic. Jump_x_move only reads your key and applies velocity if you are not moving AT ALL on the X plane in same direction as your press. Once you initiate jumping movement, your velocity is never truly 0, so it appears to ignore your subsequent input afterward in that direction.

DC
 
@megaman9rulez

I didn't play Mega Man too much but I suppose the jump system you want is similar to Super Mario, right? Or maybe like SOR3 jump?
I made a template some time ago in which you can control the jump velocity with scripts, I suggest taking a look at the codes.

 
@Kratus and @megaman9rulez,

You can use scripts like these and I have some too - but OpenBOR 4.0's air control renders them mostly superfluous. All you really need to do as a stopgap for the OP issue is bring X velocity down to absolute 0 if not holding Left/Right, and let engine handle the rest.

Just in case it helps, this video explains the principals of how those scripts work:


DC
 
@Kratus and @megaman9rulez,

You can use scripts like these and I have some too - but OpenBOR 4.0's air control renders them mostly superfluous. All you really need to do as a stopgap for the OP issue is bring X velocity down to absolute 0 if not holding Left/Right, and let engine handle the rest.

DC
@DCurrent

I tested all v4 air_control flags in a basic BOR mod, it really is a lot more complete than in the v3.
But I didn't find a way to change the gradual acceleration/deceleration factor, not allowing smooth jump types like the SOR3 one since the engine will just instantly invert the velocity to the opposite side. I don't know if I'm losing something.



In addition, the jump_x_move adds velocity for static jumps based on the character's speed, it would be better if it uses the jump_speed instead, like the forward jump does.
We can maybe make some improvements in the next updates, these new v4 commands are really useful.
 
@DCurrent

I tested all v4 air_control flags in a basic BOR mod, it really is a lot more complete than in the v3.
But I didn't find a way to change the gradual acceleration/deceleration factor, not allowing smooth jump types like the SOR3 one since the engine will just instantly invert the velocity to the opposite side. I don't know if I'm losing something.



In addition, the jump_x_move adds velocity for static jumps based on the character's speed, it would be better if it uses the jump_speed instead, like the forward jump does.
We can maybe make some improvements in the next updates, these new v4 commands are really useful.

The move speed is based on how the engine worked previously.

I already have a plan in place for smoother direction reversals, and all the current hardcoded values will get optional adjustments.

The reason they don't have it already is just time. Some things had to be shipped as is to get 4.0 out and not miss yet another deadline.

DC
 
(hey, this is the same person on a new account. gmail being weird and stuff) thanks for all your help, very excited for all you have planned for the engine. i want to learn how to make games and this seems like the most promising option... im sure ill figure out this scripting business sooner or later (super complicated), but until then im so happy to be here and get started!!
 
Back
Top Bottom