Solarus-Games English Forum

Community => Your scripts => Topic started by: yankscally on January 07, 2018, 01:33:12 PM

Title: Character Selection Screen
Post by: yankscally on January 07, 2018, 01:33:12 PM
I'm making the first game on solarus with 2 player co-op multiplay, but to begin with, and to learn Lua, I will start to code a character selection screen over the next few weeks.. I will post updates here.

(https://static.giantbomb.com/uploads/original/0/4737/451348-ffspecial.jpg)

something quite simple like this will do fine. only going to use 4 characters for now.

although I was going to use the 'tunic1, tunic2, tunic3' there is no tunic4, hopefully I can figure out what I need to do instead.

Title: Re: Character Selection Screen
Post by: MetalZelda on January 21, 2018, 12:11:12 AM
You can make as many tunics you want, tunic1 ... 3 is only used for MoS DX, game:set_ability("tunic", x) does not have limits I guess
Title: Re: Character Selection Screen
Post by: Diarandor on January 21, 2018, 01:00:08 AM
You should change the tunic sprite with hero:set_tunic_sprite_id(sprite_id), and not the level of the tunic (that is an ability for the defense, if I am not wrong). You can have as many tunic sprites as you want.