How to tell if the player jumps?

Description: Internal scripting system of SMBX-38A Engine based on the simple VB-like language
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

9th_core
Topic author, Honourable citizen
Honourable citizen
9th_core
Topic author, Honourable citizen
Honourable citizen
Reputation: 0
Posts: 36
Joined: 17 Aug 2016

Post #1by 9th_core » 7 Apr 2017, 21:21

How to tell if the player jumps? I want to constantly check to ... idk... kill Mario when he jumps? Or Toad actually...
or remove the ability to jump completely... tho this can be exploited by jumping off a ladder.
So can someone tell me a script to do it? Thanks! :) I am a n00b to Scripts... :(

Alvespires M
Count
Count
Alvespires M
Count
Count
Age: 22
Reputation: 17
Posts: 228
Joined: 20 Aug 2016
Location: Koopa Troopa Beach

Post #2by Alvespires » 7 Apr 2017, 23:08

Not Sure if it works,just a guess.Try it.

Code: Select all

Char(1).Ysp >0


Also,not sure if it's > or <.It was long ago when I used this lol.I just know that one is down and one is up.

Or you could use Keypress,I guess.
Not really up to it.

Eri7 M
Viscount
Viscount
Avatar
Eri7 M
Viscount
Viscount
Age: 21
Reputation: 109
Posts: 389
Joined: 19 Dec 2016
Location: Germany, Bonn
Youtube channel URL Twitter

Post #3by Eri7 » 7 Apr 2017, 23:54

Do
If keypress(-16) then
Code
End if
Call sleep(1) <== you can change the time of the pressing the button , its set for 1 frame
loop
Join the discord server about Nova Projects.
Image

Image

Image


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest