How do I create a balloon

Get help using Construct 2

Post » Sat Oct 07, 2017 11:54 am

Hi guys I have a balloon that moves to the player but how do i create the string that pinned to the player and the balloon that gets longer depending on if the balloons far away and shorter when it get closer?
Image
B
25
S
14
G
12
Posts: 290
Reputation: 9,402

Post » Sat Oct 07, 2017 12:08 pm

Create a sprite "BalloonString" - a horizontal line.
Set origin image point at its left end.
Set position of this sprite to the player's hand and pin it to the player.

Then do this:
Code: Select all
On every tick
  BalloonString -> set Width to Distance(player.x, player.y, balloon.x, balloon.y)
  BalloonString -> set Angle towards position (Balloon.x, balloon.y)
Check out my awesome game Doptrix
B
17
S
9
G
28
Posts: 515
Reputation: 16,329


Return to How do I....?

Who is online

Users browsing this forum: dop2000, Yahoo [Bot] and 35 guests