SSG3
Oh, THAT Youtuber...
I thought that i'd make this to prevent making additional threads for help on LUA.
The problem this time? Metroid Sonic's Morph Ball code. As Someone wanted me to put in the Morph Ball for Metroid Sonic in V7, I thought i'd give it a shot. It didn't turn out well at all. Here's the code:
If anyone can help me (since I have no way to access SRB2Fun), that'd be much appreciated.
And one for the ice flower, how can I have the color change back to the color the player was originally when they're hit (like the fire flower), since as of the latest version it changes their color to the player skin's prefcolor. Also, I want the ice flower to disappear when the bot picks it up (yes, I want the bot to use it, too)
EDIT: Ice flower fixed... forget that bit.
The problem this time? Metroid Sonic's Morph Ball code. As Someone wanted me to put in the Morph Ball for Metroid Sonic in V7, I thought i'd give it a shot. It didn't turn out well at all. Here's the code:
Code:
addHook("ThinkFrame", do
for player in players.iterate
if player.mo and player.mo.skin == "metroidsonic"
and not player.spectator
if not (player.cmd.buttons & BT_USE)
player.spinoff = true
player.spinon = false
elseif (player.spinoff) then
player.spinoff = false
player.spinon = true
else
player.spinon = false
end
if player.morphball == nil
player.morphball = false
end
if player.morphball = true
if player.speed = 0
player.mo.state = S_PLAY_ATK4
else
player.panim = PA_ROLL
end
end
if player.cmd.buttons & BT_USE
if P_IsObjectOnGround(player.mo)
player.normalspeed = skins[player.mo.skin].normalspeed - 10
player.acceleration = skins[player.mo.skin].acceleration - 10
player.morphball = true
else
player.normalspeed = skins[player.mo.skin].normalspeed
player.acceleration = skins[player.mo.skin].acceleration
player.morphball = false
end
end
if player.spinon
if (not P_IsObjectOnGround(player.mo) and player.canscrew > 0)
player.mo.momx = 0
player.mo.momy = 0
player.mo.momz = 0
player.mo.state = S_PLAY_FALL1
end
end
end
end
end)
If anyone can help me (since I have no way to access SRB2Fun), that'd be much appreciated.
And one for the ice flower, how can I have the color change back to the color the player was originally when they're hit (like the fire flower), since as of the latest version it changes their color to the player skin's prefcolor. Also, I want the ice flower to disappear when the bot picks it up (yes, I want the bot to use it, too)
EDIT: Ice flower fixed... forget that bit.
Last edited: