How to create a new Player Object (A Tutorial) #31
Pinned
RunninPigeon
started this conversation in
Show and tell
Replies: 1 comment
-
You can add this to the wiki if you want, just make sure to fix some stuff i've made, and be sure to credit me too! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Open up
obj_player
, go to the Create event, and add a macro line here:Name it whatever you want (but make sure it has "#macro PLAYER_" Infront of it and a new number next to it. (increases by 1)
After that, open up
c_devmenu
and go to it's Create event, scroll down until you see this:Add your character by it's name.
If you launch the game and select your new character, it gives you a error saying something about the palette.
Let's fix that.
Go over to scr_player_palette and find these:
Copy and paste the Sonic Case code and paste it after Amy's.
Launching it now gives you a question mark icon, meaning the game doesn't know what animate script to use, to fix this duplicate the sonic animate script and rename sonic to whatever your characters name is (make sure to do it inside the actual script on the very top!), after that, open up the
scr_player_animate
script and scroll down until you see this:Add a case that has your player and it's script, it should look like this:
You're done with the P1 Script, now onto the CPU Script.
Hop back in the
c_devmenu
and it's create event, then scroll down until you see this:Add your Character name there.
We're not done just yet!
If you launch the game and select you're new character, it dosen't show up, that's because we haven't updated the CPU Player Number.
So hop over to
c_devmenu
again and this time go to the step event. Scroll ALL the way down until you see this:See that 4? Change it to 5, that way it'll count your new character.
Now for the other stuff.
Go ahead and go into
obj_gui_results
and go into it's Draw event and find this:Add a new case for your character.
Do the same for the
obj_gui_results_special
too.Read the rest of the Guide in order to create new sprites for your character.
Beta Was this translation helpful? Give feedback.
All reactions