SOLVED Play Animation by dragging mouse left and right

Get help using Construct 2

Post » Wed Apr 30, 2014 11:48 am

On this example it is done by slider
What I need is just to move mouse left and right to have animation and after a some number of repeating left and right to have condition to go to next level

here is example with slider
play-animation-by-dragging-slider_t93575?&hilit=slider
Last edited by ladjuric on Fri May 02, 2014 12:09 am, edited 1 time in total.
B
14
S
3
G
1
Posts: 12
Reputation: 1,210

Post » Wed Apr 30, 2014 12:06 pm

One simple way that I have in mind is placing invisible objects and detect "mouse over" them.
You could also compare mouse's X previous and current value to check if it is going left or right.
B
24
S
4
G
1
Posts: 177
Reputation: 1,827

Post » Fri May 02, 2014 12:09 am

Yes but it would take more resource I think, but if you have solution with less consuming of resources feel free to post for other to find out . Ma also :D

I have seen some posts with broken attachments so I will put dropbox also
https://www.dropbox.com/s/3i951651c9jtv ... mouse.capx

Event list is commented

As I said if someone have solution with less consuming of resources feel free to reply

Cheers
You do not have the required permissions to view the files attached to this post.
B
14
S
3
G
1
Posts: 12
Reputation: 1,210

Post » Fri May 02, 2014 6:28 am

Search C2 forums for litetween , its a behavior which might help you in what you want to achieve.
B
16
S
4
Posts: 141
Reputation: 1,460

Post » Fri May 02, 2014 8:31 am

Well I achieved already without add on.
My solution is good for newbies, just like I am :)

litetween is really good but for far more complex things, it made some errors on my system so I gave up for now until I finish project and update construct, since when I update it crashes on opening that project

Cheers
B
14
S
3
G
1
Posts: 12
Reputation: 1,210

Post » Fri May 02, 2014 10:47 am

I'll think of something else. If you find the answer you are looking for, please reply!
B
24
S
4
G
1
Posts: 177
Reputation: 1,827

Post » Fri May 02, 2014 11:02 am

henriquesv wrote:I'll think of something else. If you find the answer you are looking for, please reply!


Huuh I don't get it

I solved my request it is in capx i posted.
B
14
S
3
G
1
Posts: 12
Reputation: 1,210

Post » Sat May 03, 2014 3:08 pm

Duh... Yeah! You're right! =] missed that
B
24
S
4
G
1
Posts: 177
Reputation: 1,827


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 8 guests