SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > SRB2 Discussion > Bug Reports

Reply
 
Thread Tools Search this Thread
Old 4 Weeks Ago   #1
Turret 49
Default PF_STARTJUMP isn't removed while falling

If you release the Jump key while falling after jumping, PF_STARTJUMP doesn't clear; it only clears if Jump isn't pressed while rising from a jump or bounce.
This is most noticable on any jumpspin characters, who will get their bounce height halved instantly if they're not holding jump. (see the player inputs in the gifs below)
This both makes bouncing off enemies inconsistent, and makes checking PF_STARTJUMP in Lua a bit of a crapshoot.
Attached Thumbnails
Click image for larger version

Name:	srb20097.gif
Views:	16
Size:	1.86 MB
ID:	32945   Click image for larger version

Name:	srb20098.gif
Views:	14
Size:	1.98 MB
ID:	32946  

Last edited by Turret 49; 4 Weeks Ago at 01:41 PM.
Turret 49 is offline   Reply With Quote
Old 4 Weeks Ago   #2
Kaysakado
Default

This is consistent with the genesis games, and I believe is intentional. It's helpful for intentionally getting the short bounce off an enemy, which is situational but useful.
Kaysakado is offline   Reply With Quote
Old 4 Weeks Ago   #3
Monster Iestyn
Fangtastic
Administrator
 
Monster Iestyn's Avatar
Default

PF_STARTJUMP sort of serves as a backwards "has the vertical momentum been cut yet during the jump?" kind of flag; it's set initially when you start jumping, but when you let go of jump while going up it cuts the momentum and the flag is removed ...which is how the ability to have a differing jump height based on how long you hold jump works. This doesn't really make sense to do when you're falling down, as it would mean you would fall down *slower* as a result.

I'm not sure whether it *should* be applying during bouncing too, though I never really thought of that particular behaviour as a bug before, hm.
__________________
My page stuffed full of MIDI goodness!
The Hitchhiker's Guide to the Robo-Hoodiverse
Timeline of Sonic Robo Blast History!

That's an uppercase i, not a lowercase L, for the record. Also, it's pronounced "Yes-tin".
Monster Iestyn is offline   Reply With Quote
Old 4 Weeks Ago   #4
Kaysakado
Default

Hm, after quickly referencing Sonic 2 again, it seems there is a slight inconsistency with how this is handled - in the original games, your momentum could be cut again. e.g., in SRB2, if you cut your jump, and then bounce on an enemy, you're always going to get the full bounce regardless of whether you start holding jump again or not. In Sonic 2, your momentum would be cut after the bounce if you haven't started holding jump again. Though with SRB2's emphasis on mid-air abilities, it may not be a desirable change to fix that.

EDIT: for reference, this looks to be the exact behavior for each game:
SRB2: If the player is jumping, and ascending, and has PF_STARTJUMP, cut z momentum in half and remove PF_STARTJUMP. i.e., because of PF_STARTJUMP, this will only happen once per jump.

Genesis: If the player is jumping, and ascending faster than 4 px/step, cut y momentum to 4 px/step. i.e., this can happen multiple times in a single jump if the player starts moving upwards again from bouncing.

Last edited by Kaysakado; 4 Weeks Ago at 07:37 PM.
Kaysakado is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:30 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.