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: 382
Reputation: 10,649

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
253
S
87
G
42
Posts: 7,040
Reputation: 59,295

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: 382
Reputation: 10,649


Return to How do I....?

Who is online

Users browsing this forum: Curler and 17 guests