Accelerate toward mouse using custom behaviour.

Get help using Construct 2

Post » Tue Oct 25, 2011 3:01 am

I'd like to accelerate a sprite towards the X (only) position of the mouse using the Custom Movement behaviour, like this:



But when I try it says:

Not an object - 'Mouse' is not an object name

Can you only accelerate towards an object using the custom movement behaviour?
B
72
S
25
G
9
Posts: 383
Reputation: 10,661

Post » Tue Oct 25, 2011 3:12 am

Have you inserted a mouse object in your project ?

Accelerate_toward_mouse_custom_movement.capx
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
278
S
104
G
86
Posts: 7,313
Reputation: 84,306

Post » Tue Oct 25, 2011 3:29 am

Doh! I assumed mouse coords were automatically there, I've been using to many game makers! lol!

Glad you're here Kyatric. :)
B
72
S
25
G
9
Posts: 383
Reputation: 10,661


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 3 guests