Author Topic: This commands  (Read 1389 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
This commands
« on: August 11, 2019, 09:15:52 PM »
This commands or functionalities for PB will be cool, for example.

This x = 5
This = cease fire
remove this

I thought on multiple ways to call it
This (C#), Self (GML), Me (Skript)

This will cause something to do something, but only that thing. For example
Code: [Select]
This x + 8if you use that in an enemy jump command input, only that enemy will move 8 pixels in the x. But if you use in a command block, the player who passes it will be the thing that moves in the x.

Another example
Code: [Select]
this = cease fireIf this is an enemy, will cease-fire.
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: This commands
« Reply #1 on: August 12, 2019, 12:14:24 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!

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: This commands
« Reply #2 on: August 12, 2019, 04:17:57 PM »
I love the idea!

TingThing

  • Admin and Developer
  • Level 20: Nobom
  • *
  • Posts: 1395
  • Creator and Developer of Platform Builder
    • View Profile
    • Platform Builder Home
Re: This commands
« Reply #3 on: September 13, 2019, 04:01:41 PM »
We already have something pretty close to this. I posted about it here.


For instance, you can already cause the enemy that jumped to move its x and y position. Just put "enemy x += 8" in the jump command prompt and don't include an ID. Many other enemy-specific commands works this when when placed in enemy command prompts. Same for projectile-specific commands in projectile command prompts.

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: This commands
« Reply #4 on: September 13, 2019, 08:12:09 PM »
You should expand it for not only enemies. BTW, Antikore's idea probably works better. In certain situations.