Clicking doesn't work very well..?

Just started using Construct 2? Post your questions here

Post » Mon Feb 23, 2015 2:57 am

So I have a game where you click on a moving character from right to left, you click it and it moves towards the center blahdy blah, but it takes a lot of clicks to actually get it to work.. I think its because its a moving target, and Ive tried to make the object bigger with invisible width, but it still doesnt click very well.. any ideas on how to make the clicking work better?

Also, I switched "on object clicked" to on button pressed, and it works great so I think the program just struggles with clicking on moving objects.. hmm
B
11
S
2
G
1
Posts: 27
Reputation: 1,094

Post » Mon Feb 23, 2015 6:15 am

This is just a wild guess, but you could try making the "on object clicked" event block an "Or" block and add an "on object double clicked" to it.
B
17
S
2
Posts: 66
Reputation: 1,382

Post » Mon Feb 23, 2015 6:44 am

hmm, doesnt seem to work, maybe I just have a crappy mouse lol, thats ok I think I'll change it to a button press thing, much more reliable. thanks for the reply!
B
11
S
2
G
1
Posts: 27
Reputation: 1,094

Post » Tue Feb 24, 2015 8:37 am

@NiceJared
Have you tried bigger collision polygon? It is not enough to make whole object bigger, you should enlarge collision box.
Can you give us capx?
B
12
S
6
G
2
Posts: 99
Reputation: 1,727

Post » Tue Feb 24, 2015 7:12 pm

I'd love to, but I'm a newbie and actually don't know how to do that, nor am I 100% sure what a capx is lol
B
11
S
2
G
1
Posts: 27
Reputation: 1,094

Post » Tue Feb 24, 2015 7:19 pm

clickthebox.capx
maybe this worked.. first time for everything
You do not have the required permissions to view the files attached to this post.
B
11
S
2
G
1
Posts: 27
Reputation: 1,094

Post » Tue Feb 24, 2015 8:23 pm

The collision polygon on your "RightWalk" animation, frame 0 is really wonky and doesn't cover most of the object. Open that frame, right click in the image editor, and click "Guess polygon shape". This should get you a square for your collision polygon and clicking the object will be way easier.
Moderator
B
104
S
39
G
19
Posts: 1,584
Reputation: 18,167

Post » Wed Feb 25, 2015 3:27 am

wow I would have never guessed that.. wonder how that happened? thank you so much!!
B
11
S
2
G
1
Posts: 27
Reputation: 1,094

Post » Wed Feb 25, 2015 9:38 am

NiceJared wrote:I'd love to, but I'm a newbie and actually don't know how to do that, nor am I 100% sure what a capx is lol

When you edit your object, lowest Icon in editor, below image points.
That box defines with what area will your object interact with other objects or mouse in this case.
Sometimes you will want to make it larger than object, sometimes, smaller.
Take into account, more points on collision box means more hardware requirements.
B
12
S
6
G
2
Posts: 99
Reputation: 1,727


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest