Alex The Hedgehog Character Pack (DEMO)

Alex The Hedgehog Character Pack (DEMO) V2.2

To be honest, I tried to make a script that after falling, you land on the ground and make a landing sound. (S3K56.)
And when I was just standing, it was rapidly repeating until I jump onto the air or keep moving and do something.
 
To be honest, I tried to make a script that after falling, you land on the ground and make a landing sound. (S3K56.)
And when I was just standing, it was rapidly repeating until I jump onto the air or keep moving and do something.
you can maybe do P_IsObjectOnGround(player.mo) and also add a lil check that toggles off when you go back into the air, but hey, your still learning, so its okay to make some mistakes! (maybe you could change this script to serve a different purpose, like maybe you could do a thing where if your in super form + your in your waiting animation, a lil ghost trail thingy will show up where it goes from being small to being quite big and then fading, making it look like a lil charging up animation)
 
you can maybe do P_IsObjectOnGround(player.mo) and also add a lil check that toggles off when you go back into the air, but hey, your still learning, so its okay to make some mistakes! (maybe you could change this script to serve a different purpose, like maybe you could do a thing where if your in super form + your in your waiting animation, a lil ghost trail thingy will show up where it goes from being small to being quite big and then fading, making it look like a lil charging up animation)
Since I still don't understand Lua for A BIT now because I'm still learning at it, does it works like this when landing on the ground to make a sound?:
addHook("PlayerThink", function(player)
if player.mo and player.mo.skin == skin
if player.mo.state == S_PLAY_STND
and P_IsObjectOnGround(player.mo)
S_StartSound(player.mo, sound)
end
end
end)
I did a bit different this time. Imma go test it.
 
Last edited:
Srb20013
I FINALLY DID IT BRO. EVEN IT WORKS WITH SUPER.
 
I just found out how to make a character make a sound after landing to the ground by putting this after P_IsObjectOnGround:
if (player.mo.eflags & MFE_JUSTHITFLOOR)
and (player.mo.eflags & MFE_ONGROUND)
 
im just wondering, will you be using your lua script for newer versions of the addon or is this only for testing/learning
 
Yes, I'll be using it for every character.
for EVERY character?
will you give them all different sounds and stuff? (like you could use the lil goop noise from the techno hill zone boss for the Paint Chars landing sound)
 
And I might upgrade that lua script so it could be more nice and enjoyable.
 
Like you're starting to fall and the timer appears until you'll hit the ground and it disappears?
somewhat like that, you can use "local" things for it

like local function Wait(5)
local fallsound == true

(i haven't used the addon yet so i dont really know how it works)
 
Top