Mario Jump/Attack

deadjoe666

New member
Hi there,

I've been toying with OpenBOR for a while, going away for years and coming back to check it out. It astounds me the awesome games people are putting out.

I do weird music and videos myself, and thought a video game would be a neat way to release an album. I am slowly learning about editing levels, but I am not very versed in programming, so the characters are tough for me. I couldn't find anything like this in other mods, so I figured I would ask here.

I was wondering if there was a way to do a Mario styled jump and attack? That is, when you jump and land on an enemy's head they are hurt, and you then jump off.
Right now I have it set up so enemies have a bbox on the top of them and when the player jumps, their attack box is under, but I don't know how to make the bounce off work.
I also don't know if I am explaining this well.
But just take a look at a standard Mario level, and you can see what I mean:
https://www.youtube.com/watch?v=PsC0zIhWNww

I was also looking for a way to have the player bounce back after taking damage, but I think I can just do that with jumpframe?
 
Hi,

You can use the built-in follow system to do that. For example, setting "followcond 1" and "followanim 2" in an animation containing an attackbox will make entity play follow2 when its attackbox connects with a bbox. You could set the jump in follow2 animation.

You can also use script events.

More specifically, you can use didhitscript for player entity. It'll trigger whenever the entity hits something.

For the player taking damage, you can either use takedamagescript or painscript.

On another note, you can do Mario styled jump (variable jump height depending on button press time) in OpenBOR. I think DC posted a working function using onmoveascript on his website.
 
Not only is it pretty simple to do all of this (and yes, I did write a script to give you Mario style height control), but some time back Utunnels even made a fully functional Super Mario Brothers demo. I'm sure you can find it if you look around.

DC
 
Ah! Thank you very much.
I will try implementing this soon. I am very bad at coding, so I might need to ask more questions, ha ha.

Also, I tried to find the Utunnels, and I can only see really old videos on youtube?
If anybody knows where that is at, I would be very grateful.

Again, thank you!
 
I don't know how well it translates to the "mario style" you are looking for, but zvitor's Marvel First Alliance has that bounce attack on Iron Fist, Black Cat and a couple of other characters. I'm sure there are others, but it's the first one that came to mind.

I need to check that mario demo to see how hard it is to adapt to other mods. Jump height control is something I'd like everywhere. :D
 
@deadjoe666: If you need example you can try this Castlevania demo:

http://www.mediafire.com/?e4csf96xd9e4ki5

Play as Leon Belmont as perform his dive kick, he'll bounce off after hitting anything. He can double jump after the bounce

Jump height control is something I'd like everywhere

Hmmm.... maybe it's time to update that demo mod

I need to check that mario demo to see how hard it is to adapt to other mods

I want to check that too :)
 
Thank you very much!
After findangling, I couldn't get the Castlevania scripts to work (as I said, I don't really know anything about that part), but I manage to get the follow animations to go perfectly!
I had already been looking at the Castlevania demo, actually, for help with a 2D mod, and just found the invis script, which worked no problems.

Again, thank you. I am still trying to figure out how to implement the height control.
 
Back
Top Bottom