Author Topic: Enemy = turn command  (Read 2611 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
Enemy = turn command
« on: February 22, 2020, 12:12:27 PM »
This command will turn to the opposite direction to the one it's currently the selected enemy.
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: Enemy = turn command
« Reply #1 on: February 22, 2020, 03:35:05 PM »
This command will turn to the opposite direction to the one it's currently the selected enemy.
We can already do that I think?
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!

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: Enemy = turn command
« Reply #2 on: February 22, 2020, 04:18:43 PM »
Nope, I'm almost sure
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: Enemy = turn command
« Reply #3 on: February 22, 2020, 05:49:25 PM »
Nope, I'm almost sure
Aaaaaaaahhh, with enemies... I tought would be the same that with npcs ::)
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!

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: Enemy = turn command
« Reply #4 on: February 22, 2020, 05:50:03 PM »
With npcs work?
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: Enemy = turn command
« Reply #5 on: February 22, 2020, 07:23:07 PM »
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!

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: Enemy = turn command
« Reply #6 on: February 22, 2020, 07:24:09 PM »
Nevermind, works also with bad guys
Code: [Select]
enemy 3 = face right
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!

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: Enemy = turn command
« Reply #7 on: February 22, 2020, 08:16:16 PM »
Nevermind, works also with bad guys
Code: [Select]
enemy 3 = face right
NO
You're not understanding.
A command to FACE THE OPPOSITE DIRECTION TO THE ONE IT'S NOW.
enemy 1 = turn left //Turn left the enemy
enemy 1 = turn //If the enemy is facing right, turns left, if the enemy is facing left, turns right.
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: Enemy = turn command
« Reply #8 on: February 23, 2020, 09:41:52 AM »
NO
You're not understanding.
A command to FACE THE OPPOSITE DIRECTION TO THE ONE IT'S NOW.
enemy 1 = turn left //Turn left the enemy
enemy 1 = turn //If the enemy is facing right, turns left, if the enemy is facing left, turns right.
Aaaaaaaaahhhhhhh! I understand! Yeah, I want this.
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: Enemy = turn command
« Reply #9 on: February 23, 2020, 03:05:16 PM »
I don't understand it.

saiwong3268

  • Level 6: Milder
  • *
  • Posts: 119
    • View Profile
Re: Enemy = turn command
« Reply #10 on: February 23, 2020, 03:28:13 PM »
I don't understand it.

I think what he wants is something like:


//if enemy is moving left, then make it move right
if enemy 1 direction = left
{
enemy 1 = right
}


//if enemy is moving right, then make it move left
if enemy 1 direction = right
{
enemy 1 = left
}


CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Enemy = turn command
« Reply #11 on: February 23, 2020, 03:38:17 PM »
Makes sense. You can already do that.

if enemy (ID) = right
{
enemy (ID) = left
}

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: Enemy = turn command
« Reply #12 on: February 23, 2020, 05:02:41 PM »
Makes sense. You can already do that.

if enemy (ID) = right
{
enemy (ID) = left
}
I have normally some issues with it.
Sorry because my English is not very good because I'm Spanish ;) :P