Author Topic: Commands for changing character designs  (Read 2001 times)

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Commands for changing character designs
« on: June 05, 2019, 09:00:32 PM »
Of course we already have commands for this. But Ting is missing something. I've decided to take a break from normal ASM work, and focus on testing co-op in ASM. Right now, all I see is that I have to change a bunch of disable players commands as I see fit. But there is one issue. Character designs. I need a command like this.
"change player 2 design=25" as an example.

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Re: Commands for changing character designs
« Reply #1 on: June 06, 2019, 06:49:49 AM »
You can do this right now with a command. I forgot which one. If you need help with selectng player, use "for player = 1/2" :D
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Commands for changing character designs
« Reply #2 on: June 06, 2019, 02:28:54 PM »
Sorry, but I don't understand. I'm not making a player selector yet. If ever. But, I do want to simply change the designs for players 1 and 2. Without them having the same design.

TingThing

  • Admin and Developer
  • Level 20: Nobom
  • *
  • Posts: 1395
  • Creator and Developer of Platform Builder
    • View Profile
    • Platform Builder Home
Re: Commands for changing character designs
« Reply #3 on: June 18, 2019, 07:53:09 PM »
Try something from here.

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Commands for changing character designs
« Reply #4 on: June 18, 2019, 07:59:11 PM »
I saw that TingThing. I need it so that it does it for a specific player. Not character.

TingThing

  • Admin and Developer
  • Level 20: Nobom
  • *
  • Posts: 1395
  • Creator and Developer of Platform Builder
    • View Profile
    • Platform Builder Home
Re: Commands for changing character designs
« Reply #5 on: June 18, 2019, 08:03:06 PM »
Oh, so like similar commands but for whatever character is being used as player 1 or player 2?

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Commands for changing character designs
« Reply #6 on: June 18, 2019, 08:19:31 PM »
Correct.

TingThing

  • Admin and Developer
  • Level 20: Nobom
  • *
  • Posts: 1395
  • Creator and Developer of Platform Builder
    • View Profile
    • Platform Builder Home
Re: Commands for changing character designs
« Reply #7 on: June 24, 2019, 07:49:31 PM »
You can do this right now with a command. I forgot which one. If you need help with selectng player, use "for player = 1/2" :D


In that case, Antikore is correct. Look up the command for player [or] with player. You can use that to control whether player 1 or player 2 get the command to change designs. for example:
Code: [Select]
if player 1 exists
{
for player 1
change design  = 12
}
if player 2 exists
{
for player 2
change design = 23
}

« Last Edit: June 24, 2019, 07:50:25 PM by TingThing »

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Commands for changing character designs
« Reply #8 on: June 24, 2019, 07:50:55 PM »
Woah. I wish I had thought of that.