How do I animate the cursor

Just started using Construct 2? Post your questions here

Post » Wed Apr 16, 2014 8:20 pm

I have a sprite which plays its default animation correctly when I place it in the layout but when I set this sprite as the mouse cursor it isn't animated. I must be overlooking something...

Thanks in advance for any advice.
B
5
S
2
Posts: 53
Reputation: 792

Post » Thu Apr 17, 2014 7:27 pm

You can hide the mouse cursor and set the sprite to mouse.x, mouse.y every tick.

Or you can do this:
animatedCursor.PNG


I'm not sure which performs better.
You do not have the required permissions to view the files attached to this post.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,650

Post » Thu Apr 17, 2014 8:08 pm

I like that "on frame changed" method - not seen it before (and probably would never of thought of it). Thanks @ramones.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Post » Fri Apr 18, 2014 1:11 pm

Thanks so much! After posting, I figured out the 'mouse x and y every tick' method but your second suggestion is much smoother and more elegant. Much appreciated.
B
5
S
2
Posts: 53
Reputation: 792


Return to Beginner's Questions

Who is online

Users browsing this forum: TrialnError423 and 1 guest