Platform Builder Forums

Main => Suggestions => Topic started by: Antikore on August 11, 2019, 09:15:52 PM

Title: This commands
Post by: Antikore 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.
Title: Re: This commands
Post by: War on August 12, 2019, 12:14:24 PM
(https://i.ibb.co/G3Lkj7J/37ti77.jpg) (https://imgbb.com/)
Title: Re: This commands
Post by: CGM on August 12, 2019, 04:17:57 PM
I love the idea!
Title: Re: This commands
Post by: TingThing on September 13, 2019, 04:01:41 PM
We already have something pretty close to this. I posted about it here (https://theplatformbuilder.com/forums/index.php?topic=781.0).


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.
Title: Re: This commands
Post by: CGM 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.