How do I function para quest or....

Get help using Construct 2

Post » Tue Sep 15, 2015 10:21 am

hello guys,, i need litle help here..

In my game a make one sprite(Spawn) when i click,, a sprite (balloon) spawn and set position round(Mouse.X/25)*25 round(Mouse.Y/25)*25.. true
and when i click again the sprite has false...

"balloon - boolean Drop it is true "

Mouse on Left button Clicked on Spawn || Call "createballoon"
Function | on "createballoon" || System Create object Balloon on layer 0 at (Mouse.X , Mouse.Y)
Ballon is Drop It || Balloon set position round(Mouse.X/25)*25 round(Mouse.Y/25)*25
Mouse on Left button Clicked on Balloon || Balloon Set Drop it to false

now...

i need to make a fuction when i click the sprite(balloon)
---> the spirte(Destroy) get the uid from the sprite(balloon)
..and when i click the spite(destroy)
---> the sprite(balloon) has Destoyed..or change color or start moving .. or drag and drop or change color or what ever :P
... but only the sprite(balloon)when i click not all..
B
17
S
7
G
7
Posts: 205
Reputation: 5,335

Post » Tue Sep 15, 2015 1:34 pm

If I understand you correct, you can just do as you have done in the last example:
Mouse on Left click ballon -> Ballon.destroy

If you need to make it choose between several things:
Mouse on Left click ballon -> Choose(function.Destroyballon (Ballon.uid), function.ChangeColor(Ballon.uid)....etc)
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848

Post » Tue Sep 15, 2015 2:32 pm

mouse on lefti click Destoy -- destroy the balloon that one click before ...

if i have 20 balloon and mouse click one balloon from 20 ---> this balloon is the target.. thats balloon destroyed when i mouse click on destroy (sprite)
B
17
S
7
G
7
Posts: 205
Reputation: 5,335

Post » Tue Sep 15, 2015 8:29 pm

Hi CBelle I'm online and need help so can you respond to my post
B
8
S
1
Posts: 26
Reputation: 635


Return to How do I....?

Who is online

Users browsing this forum: worm1 and 18 guests