[SOLVED]How do I add to behavior properties?

0 favourites
  • 3 posts
From the Asset Store
Add SubRip (SRT) subtitles to your videos in Construct 3
  • Hello World,

    If I use behaviors like platform and bullet, how can I add to the values I initially set?

    For example let's say the platform behavior of an object has max speed 300 initially. Then I want to have an event every x seconds add +10 to max speed. So I use system event every x seconds then set max speed action and then what do I write there...? Because I don't want it to just set a new max speed, I want it to add to the current max speed, or acceleration or whatever I choose.

    If I wasn't clear enough let me know guys and I'll be glad to clarify myself.

    Thank you everyone.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You would add the value to the sprites platform.maxspeed value:

    Sprite.Platform.MaxSpeed + amountToAdd

    All of the properties of a behavior are accessed by typing the name of the object, then a period (.) connecting the behavior, then a period connecting the property name.

  • Great, exactly what I wanted to know. Thank you very much.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)