help

Get help using Construct 2

Post » Wed Apr 15, 2015 10:41 pm

hi i want to know you can do this :
if you click this picture of a turret then anywhere you click that turret appears but if you click the other turret picture then thats the turret that will appear when you click somewhere.

Thanks
B
5
Posts: 34
Reputation: 295

Post » Wed Apr 15, 2015 10:47 pm

Here's one way to do it:

Make a global text variable "pickedname"

Give your turret pictures text variables "name" and set it to "turret1", "turret2" etc. for each turret picture

then
- on click on turret picture set "pickedname" to "turretpicture.name"

- on click on layout
- "pickedname" = "turret1 - > create turret 1 sprite
- "pickedname" = "turret2" - > create turret 2 sprite

etc.
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 35,968

Post » Fri Apr 17, 2015 1:55 am

hi could you pls add what you said to my .capx because i keep trying but it doesnt work . Here is the link

www. dropbox. com/s/9ze6nklhk6tfs6a/Space%20Defenders.capx?dl=0
B
5
Posts: 34
Reputation: 295

Post » Fri Apr 17, 2015 9:14 am

mexico1414 wrote:hi could you pls add what you said to my .capx because i keep trying but it doesnt work . Here is the link

www. dropbox. com/s/9ze6nklhk6tfs6a/Space%20Defenders.capx?dl=0



If you remind me tonight (well tonight of my timezone xD) then I will do it. I'm not at home at the moment.
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 35,968

Post » Sat Apr 18, 2015 6:49 am

This is a reminder
B
5
Posts: 34
Reputation: 295

Post » Sat Apr 18, 2015 6:49 am

This is a reminder
B
5
Posts: 34
Reputation: 295

Post » Sun Apr 19, 2015 1:10 am

Were you able to edit my .capx
B
5
Posts: 34
Reputation: 295

Post » Sun Apr 19, 2015 4:22 pm

hi i want to know you can do this :
if you click this picture of a turret then anywhere you click that turret appears but if you click the other turret picture then thats the turret that will appear when you click somewhere.

PLS check out my .capx and if you can pls edit it and do what i have asked for:
www. dropbox .com/s/9ze6nklhk6tfs6a/Space%20Defenders.capx?dl=0

THANKS ALOT
B
5
Posts: 34
Reputation: 295

Post » Sun Apr 19, 2015 4:33 pm

Don't create duplicate threads for the same question.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,126

Post » Sun Apr 19, 2015 4:34 pm

sorry i dont know why but it keeps happening by ittself
B
5
Posts: 34
Reputation: 295

Next

Return to How do I....?

Who is online

Users browsing this forum: Hassan Hackmi, kainrazial, t redeemed t and 9 guests