Author Topic: Character Selection Screen  (Read 602 times)

yankscally

  • Newbie
  • *
  • Posts: 22
    • View Profile
Character Selection Screen
« 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.



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.


MetalZelda

  • Hero Member
  • *****
  • Posts: 551
    • View Profile
Re: Character Selection Screen
« Reply #1 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

Diarandor

  • Hero Member
  • *****
  • Posts: 1024
  • Cats are cool! (ΦωΦ)
    • View Profile
Re: Character Selection Screen
« Reply #2 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.
“If you make people think they're thinking, they'll love you. But if you really make them think, they'll hate you.”