how to tell if Link is running or jumping?

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

Shadowblitz16
Topic author, Close friend
Close friend
Shadowblitz16
Topic author, Close friend
Close friend
Reputation: 12
Posts: 93
Joined: 15 Aug 2016

Post #1by Shadowblitz16 » 24 Jun 2017, 23:25

does anybody know how to tell if link is running or jumping?

I want to recreate the physics of Z2 in 38A

HugoMDM M
Our friend
Our friend
Avatar
HugoMDM M
Our friend
Our friend
Age: 22
Reputation: 71
Posts: 79
Joined: 17 Apr 2016
YouTube Youtube channel URL

Post #2by HugoMDM » 12 Aug 2017, 5:50

Running

Code: Select all

if char(1).xsp = 6 then
'Your code
end if


Jumping

Code: Select all

if char(1).ysp < 0 then
'your code
end if


Falling

Code: Select all

if char(1).ysp > 0 then
'your code
end if
I make good scripts for everyone c:
Scripting YT channel
https://www.youtube.com/channel/UChaWgDsfMCqJzeV0bmDs-Mw?view_as=subscriber


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest