Author Topic: Some new commands!  (Read 1608 times)

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Some new commands!
« on: July 10, 2018, 12:14:36 PM »
Command Prompt is one of the best solutions Ting has ever made! So why not make it even better? We have commands that are only called by invisible blocks, beginning of areas, etc. But we don't have commands that get activated by "If" commands. I think Ting should add these commands. For example, "If enemy hits character1=start timeline1." I'm not good with code, so that might not have sounded right. Anyways, here are more examples. "If enemy1 is killed=" "If enemy1 bumps enemy2=". What I mean by "Bumps" I mean run into it like they always do. Or some projectile commands like: "If projectile kills/harms enemy1=" or "if projectile 1 is shot=" "If projectile1 returns to character1=". You get the idea. I can't think of any other commands for other objects, but there's a few commands which could be added in 5.4. Comment if you have any other ideas and like this post! (Too bad you can't like posts here!)

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Some new commands!
« Reply #1 on: October 04, 2018, 07:27:38 PM »
This suggestion is coming in 6.1! I'm so excited!

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: Some new commands!
« Reply #2 on: October 05, 2018, 12:46:05 PM »
If enemy 1 hits character
{
timeline = 1
}
Sorry because my English is not very good because I'm Spanish ;) :P

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: Some new commands!
« Reply #3 on: October 05, 2018, 12:52:06 PM »
Command Prompt is one of the best solutions Ting has ever made! So why not make it even better? We have commands that are only called by invisible blocks, beginning of areas, etc. But we don't have commands that get activated by "If" commands. I think Ting should add these commands. For example, "If enemy hits character1=start timeline1." I'm not good with code, so that might not have sounded right. Anyways, here are more examples. "If enemy1 is killed=" "If enemy1 bumps enemy2=". What I mean by "Bumps" I mean run into it like they always do. Or some projectile commands like: "If projectile kills/harms enemy1=" or "if projectile 1 is shot=" "If projectile1 returns to character1=". You get the idea. I can't think of any other commands for other objects, but there are a few commands which could be added in 5.4. Comment if you have any other ideas and like this post! (Too bad you can't like posts here!)
Referring to "I'm not very good with code". I will help you, with things in 5.0, 6.0 and 6.1 for command prompt.
An if conditional will check if the condition is met and if it's met, it will execute a piece of code that is next to it inside a group of "{" "}". Everything in each line

if snowy = true
{
+It's christmas!
}

if checks if snowy is true, and if it does, the next piece of code inside {} is executed, and if not, it will do the next else

if snowy = true
{
+It's christmas!
}
else
{
+It's not christmas :(
}

= means if it's equal to, > means if the first thing is bigger than the second and < means if the first thing is smaller than.

Hope this help you a little!
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Some new commands!
« Reply #4 on: October 05, 2018, 05:45:14 PM »
Oh. This suggestion was written in July. So, it's a little update. I do get it now. This was posted before 6.0.