Exchange of Sprites

Get help using Construct 2

Post » Sun Feb 03, 2013 12:32 am

Hello, I'm new in Construct 2.

I would make when he clicked a sprite move to another. For example when I click the sprite he would black to green and so on. But the problem is when I finished the sequence with four sprites and clicked to test it never left the first.
Here is the file to understand what I'm trying to explain. Tried in various ways.

https://dl.dropbox.com/s/mhvh48452ufchkf/jogo.capx?dl=1
B
7
S
2
G
1
Posts: 4
Reputation: 1,445

Post » Sun Feb 03, 2013 12:43 am

Objects are clickable even if they are invisible, so when you click the black sprite you actually click all of them and it resets back to the black one. (try disabling the last event and you'll see what I mean)

You could create and destroy the objects on click, instead of setting their visibility to prevent this.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Tue Feb 05, 2013 12:37 pm

Nimtrix I did that and still have something wrong. See:

https://dl.dropbox.com/s/mhvh48452ufchkf/jogo.capx?dl=1
B
7
S
2
G
1
Posts: 4
Reputation: 1,445

Post » Tue Feb 05, 2013 2:07 pm

Correction of your project

Another implementation using only one sprite with several frames.

The idea is to tell Construct that you want a single action.
Clicking on a sprite that creates another sprite, the newly created sprite registers as being clicked on right away.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,786

Post » Wed Feb 06, 2013 12:38 pm

Kyatric thanks
B
7
S
2
G
1
Posts: 4
Reputation: 1,445


Return to How do I....?

Who is online

Users browsing this forum: Draconinho, LeFuji, plinkie, totoe and 18 guests