Help with this example

Get help using Construct 2

Post » Sun Jul 12, 2015 12:34 pm

Fix it
Last edited by statham on Tue Jul 14, 2015 3:48 pm, edited 1 time in total.
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Sun Jul 12, 2015 1:27 pm

I tested your example and it seems to be working o-o
B
17
S
7
Posts: 280
Reputation: 2,522

Post » Sun Jul 12, 2015 3:19 pm

No, the example is done with the mouse not to touch.
I want with a click (touch) to rotate the figure and once placed on the board with one click you can change rotation
:(
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Sun Jul 12, 2015 3:48 pm

statham wrote:No, the example is done with the mouse not to touch.
I want with a click (touch) to rotate the figure and once placed on the board with one click you can change rotation
:(


So the problem is you don't understand the events in the event-sheet well enough to see how to change them?
You don't just want to change mouse events for touch events, you want to change the mechanics of the capx..
Which is doable, if you understand the mechanics..

From what you explain, you'd like to use an "on tap" and "is overlapping draggable" event for the rotation.
you can replace all on left mouse button down conditions with "is in touch"
you probably want to change the mouse.x and mouse.y within expressions to touch.x and touch.y

that should get you a good way in the right direction..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jul 12, 2015 5:04 pm

I try but I do not work :(
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Sun Jul 12, 2015 5:26 pm

If you post your attempt then it will make it easier to see where you are going wrong.

It would be a much bettter learning experience if you can attempt the changes, then let others see and fix if wrong, rather than someone just doing it for you.

You'll learn nothing if you just let someone do the work for you.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
86
Posts: 5,488
Reputation: 59,762

Post » Sun Jul 12, 2015 9:10 pm

I tried but nothing but good thanks anyway :(
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Sun Jul 12, 2015 9:26 pm

Hint: Insert "touch" object is a good way to start
Image Image
B
25
S
14
G
139
Posts: 876
Reputation: 72,510

Post » Mon Jul 13, 2015 10:28 am

LittleStain wrote:
statham wrote:No, the example is done with the mouse not to touch.
I want with a click (touch) to rotate the figure and once placed on the board with one click you can change rotation
:(


So the problem is you don't understand the events in the event-sheet well enough to see how to change them?
You don't just want to change mouse events for touch events, you want to change the mechanics of the capx..
Which is doable, if you understand the mechanics..

From what you explain, you'd like to use an "on tap" and "is overlapping draggable" event for the rotation.
you can replace all on left mouse button down conditions with "is in touch"
you probably want to change the mouse.x and mouse.y within expressions to touch.x and touch.y

that should get you a good way in the right direction..


I did as you said and it does not work :(
Someone can make me an example :|
https://www.dropbox.com/s/fbl8wlt0wsgs108/check2.capx
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Mon Jul 13, 2015 10:37 am

statham wrote:
LittleStain wrote:
statham wrote:No, the example is done with the mouse not to touch.
I want with a click (touch) to rotate the figure and once placed on the board with one click you can change rotation
:(


So the problem is you don't understand the events in the event-sheet well enough to see how to change them?
You don't just want to change mouse events for touch events, you want to change the mechanics of the capx..
Which is doable, if you understand the mechanics..

From what you explain, you'd like to use an "on tap" and "is overlapping draggable" event for the rotation.
you can replace all on left mouse button down conditions with "is in touch"
you probably want to change the mouse.x and mouse.y within expressions to touch.x and touch.y

that should get you a good way in the right direction..


I did as you said and it does not work :(
Someone can make me an example :|
https://www.dropbox.com/s/fbl8wlt0wsgs108/check2.capx


I'm not sure why you did what you did, but I guess that's ok, for it seems to me neither do you..

Why did you make it so that when touching an object the dragging is turned of (event 2 in the sheet)?

You replaced a "mouse - on left button released" with a "touch - is touching" condition, you do understand why that is wrong?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests