Balloon effect

0 favourites
• 13 posts
From the Asset Store
A Rise Up game clone. This is a template for your projects.
• I've been trying a platformer balloon effect. When the player stands above the balloon, the balloon goes down... After it went down, if the player is not above any more, it should go up...

How far i've got:

On layout start -> Gravity 0 Speed 0

Player stands above -> It goes down (gravity 100)

Player NOT above -> It goes down (gravity -20) (This triggers the gravity -20 even when de game starts since it fits the requirement of not beeing above... need other way)

But I can't figure out how to make it stop at the first position, avoiding it going too up.

Concept:

<img src="http://oi43.tinypic.com/10ymanq.jpg" border="0" />

I hope I did not confuse you too much.

• The sine did 80% of the job, now how can I save the first position so I can then return the balloon there?

• double check his position (original_ballon_pos and ballon_pos), after it, make him follow to the first position, tracing the route.

• You mean i can do that smoothly with the sine?

• Unstable platforms

For those, you hardly need a behavior (only the solid, it's enough).

• What does the function lerp() stand for?

• lerp is a way of making interpolation between objects.

For example, if i want to tween something's x position then I will interpolate it using lerp.

Same with y, size, angle etc.

• Awesome. And how can I set the value of a boolean to <varies>? It just rejects it.

• Anything can be changed in another thing, like a number in a string, str(number), etc, if I'm not wrong =]

I really suggest to you to read all the manual first too.

About the behavior, you'll need it for everything else, the exception are static scenarios and canvas ^^

Good luck.

• No need for manual (in this, case) just forum search:

That means different instances have different initial values. If you click on an individual instance, you can set initial values for its variables on the left bar. If all the instances have the same value, it'll show you the value in that screenshot, but if any are different, it'll say "<varies>" like that.

• Use the UID for it, unique ID.

• Try Construct 3

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

Construct 3 users don't see these ads
• Thank you :)

• could you make the boolean be <var�es>?