Need help with Lua! (Nevermind)

Andromeda

Amateur Mapper and Local Dumbass
PLEASE IGNORE THESE FIRST 3 MESSAGES
IM REUSING A THREAD

Title says it all. No clue what I'm doing.
I have an idea of what I want the character to be, just don't know how to bring him to life.
I've looked through the wiki for guidance, but got as far as setting up a very basic S_SKIN file which does not incorporate any custom abilities seeing as I dont know how, and the page explaining how to make them is quite confusing.
I also have no Lua scripting experience... also no sprites, cause I don't have the know-how to design sprites.

Can someone help?
I'd also like to collaborate with someone, at least for the sprites.
Post automatically merged:

I've looked through the wiki for guidance, but got as far as setting up a very basic S_SKIN file
Oh, and a Character Select text file, too.
 
Last edited:
what do you mean? what the character looks like or...?
Post automatically merged:

If you mean what they look like, here he is.
Well, close enough, anyway. I made it in a Roblox game, so there were limitations.
If i had a drawing of him I'd have that here, but I can't draw for shit.
Drift_T_Cat_Shrug.png

Post automatically merged:

Can you show what the Character is like?
...or did you mean their abilities?
Post automatically merged:

Hmmm...
Now I'm wondering what the bare minimum for this to work is.
I'm guessing it needs sprites to function.
 
Last edited:
Ok, Ive got to the point where the character is playable. But he has very basic abilities and is using Sonic's sprites.
I figured I'd try and make the easiest ability first, so I'm reading the wiki on how to make custom abilities and I cant see that it clearly says anywhere how to check what state a player is in (for example, spinning) and how to change it.
Post automatically merged:

So I copy the script in the tutorial word for word and it works fine, but when I want to change what it does, it doesn't
What's gone wrong?
heres what ive got:
Lua:
addHook("ThinkFrame", function()
    for player in players.iterate do
        if player.mo.skin ~= "drift_the_cat" then
            continue
        end
        
        if not (player.cmd.buttons & BT_USE) then
            player.spintapready = true
            player.spintapping = false
        elseif player.spintapready then
            player.spintapping = true
            player.spintapready = false
        else
            player.spintapping = false
        end
        
        if player.spintapping then -- New line
            player.mo.flags2 = $1 ^^ PF_SPINNING -- New line
        end -- New line
    end
end)
 
Last edited:

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top