Mouseover Animation issue - Animation doesnt work

Bugs will be moved here once resolved.

Post » Sun Nov 13, 2011 2:57 pm

Hi,

Description:
Create a "Cursor over object" event and set animation.

Expected:
When mouse is moved over the object, animation happens.
When the mouse is moved away from object, animation should stop.
Please note: Animation is not set in loop.

What is happening:
When mouse is moved over the object, animation is happening.
But when mouse is moved away and again brought on the object animation doesnt happen.


I have tried combinations with using Stop animation, using set current frame. But it doesn't work.


Release: r66


OS: Windows XP
Browser: Chrome 15.x



What is the correct way to do it?

1. I am looking at playing an animation when mouse is over and object and when mouse is not over it, the animation should stop.

2. When mouse goes back on it, the animation should continue from the last frame that was running.
Krish
Hey! Did you know that you can hire me to make your games?

Click Here to See More
B
21
S
6
G
5
Posts: 391
Reputation: 5,627

Post » Sun Nov 13, 2011 3:21 pm

Seems like what's happening is the animation is constantly (i.e. on every tick) started as long as the mouse is over it.

In Construct Classic we had a "Trigger once" option, in C2 workarounds are necessary, it seems.

Check out the example.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Sun Nov 13, 2011 3:42 pm

Okay Got it.

1. I've used invert mouse event .. was looking for it in "add event". :)

2. Still, what is the right way to
"When mouse goes back on it, the animation should continue from the last frame that was running."?
Krish
Hey! Did you know that you can hire me to make your games?

Click Here to See More
B
21
S
6
G
5
Posts: 391
Reputation: 5,627

Post » Sun Nov 13, 2011 4:09 pm

Well, the animation seems to continue right where it left off.

But if like, you say, yours doesn't loop it'll just go till the end and that's it.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Sun Nov 13, 2011 6:43 pm

True. It should go till end.

But whenever I bring the mouse back on the object, shouldn't the animation start again from the beginning?

My action says "set animation to <animation name> from beginning"
Krish
Hey! Did you know that you can hire me to make your games?

Click Here to See More
B
21
S
6
G
5
Posts: 391
Reputation: 5,627

Post » Sun Nov 13, 2011 8:43 pm

@krish: then add an action "animation start" right under "set animation"

@Somebody : There is a system.Trigger once while true condition too in C2.
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: 7,000
Reputation: 57,795


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests