Author Topic: Enemy coordinates  (Read 1305 times)

saiwong3268

  • Level 6: Milder
  • *
  • Posts: 119
    • View Profile
Enemy coordinates
« on: December 22, 2019, 08:48:31 PM »
Hello,


Within a custom enemy settings I can successfully change its x and y coordinates.
However, I can't seem to make "if statement" checks on it

for example:

if enemy y < [player 1 y]
{
 …. do something
}

Platform  Builder always crashes on me. If there a way to do this ?

Gizgord

  • average
  • Level 18: Statix
  • *
  • Posts: 835
    • View Profile
Re: Enemy coordinates
« Reply #1 on: December 22, 2019, 09:41:24 PM »
I never tried to do that, but you can try typing in your character ID instead of your player.

if enemy y < [character 3 y]
{
... do something
}

TingThing

  • Admin and Developer
  • Level 20: Nobom
  • *
  • Posts: 1395
  • Creator and Developer of Platform Builder
    • View Profile
    • Platform Builder Home
Re: Enemy coordinates
« Reply #2 on: December 22, 2019, 09:42:36 PM »
That command should work. But it looks like you found an error.


I'll make sure this gets fixed in the next update.