Author Topic: Allow this conditional to work with "for player = 1"  (Read 1444 times)

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
Allow this conditional to work with "for player = 1"
« on: August 15, 2019, 08:18:49 PM »

Code: [Select]
for player = 2
if key = attack
{
     speed = 60
}
else
{
     speed = 40
}

Allow to check if the player 2 is holding ITS attack button
Sorry because my English is not very good because I'm Spanish ;) :P

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: Allow this conditional to work with "for player = 1"
« Reply #1 on: August 16, 2019, 08:28:40 AM »
Good idea !
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Allow this conditional to work with "for player = 1"
« Reply #2 on: August 16, 2019, 05:33:59 PM »
I don't really understand.

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: Allow this conditional to work with "for player = 1"
« Reply #3 on: August 17, 2019, 10:10:25 AM »
He wants a thing to check if P2 is holding the Attack Button.
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Allow this conditional to work with "for player = 1"
« Reply #4 on: August 17, 2019, 03:36:35 PM »
Oh.