Mouse controller speed?

For questions about using Classic.

Post » Sat Sep 26, 2009 3:42 pm

Hi,

Is there away to slow down or vary the mouse behavior speed that has a sprite connected to it?

Thanks
My Games on google play

ImageImage
B
30
S
6
G
4
Posts: 97
Reputation: 3,008

Post » Sat Sep 26, 2009 4:04 pm

studied this recently lol just put an action on your 'start layout event and set mouse scroll speed, woot woot i know something
B
2
G
3
Posts: 33
Reputation: 916

Post » Sat Sep 26, 2009 5:52 pm

Great! Thanks for info, just need a bit of help doing this, I'm very new here.

I created the start of Layout event but i can not find scroll rate for mouse behavior in actions list? i'm running 99.42 of Construct

thanks
My Games on google play

ImageImage
B
30
S
6
G
4
Posts: 97
Reputation: 3,008

Post » Sun Sep 27, 2009 6:58 am

well u have to insert a keyboard/mouse object into the layout first, after that the option will be available
B
2
G
3
Posts: 33
Reputation: 916

Post » Sun Sep 27, 2009 8:23 am

Thanks for the help. I have a mouse and keyboard object in layout and can set visibilty of mouse pointer etc, but i can't see an option to set scroll speed? I checked the wiki and can't find a reference to this option, though i can see these outlined here [url:2xr207bf]http://sourceforge.net/apps/mediawiki/construct/index.php?title=Mouse_%26_Keyboard_Object[/url:2xr207bf]

Thanks.
My Games on google play

ImageImage
B
30
S
6
G
4
Posts: 97
Reputation: 3,008

Post » Fri Oct 02, 2009 12:04 pm

can't find this either. Not that i need it right now, but i got curious.
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Fri Oct 02, 2009 4:18 pm

Why not just use math instead of mouse behavior?

Have a look at
[url:2m368uil]http://www.scirra.com/phpBB3/viewtopic.php?f=16&t=1865[/url:2m368uil]

and
[url:2m368uil]http://www.scirra.com/phpBB3/viewtopic.php?f=3&t=2055&p=15393[/url:2m368uil]

Or do I misunderstand what you are trying to achieve?
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Sat Oct 03, 2009 5:06 pm

hi tulamide,

The first link is pretty close to what i'm trying to achieve. Take out the angle to mouse and the sprite follows the mouse at a slower pace, which is what i'm trying to do.

the only thing that i would like to try and tweak is to make the sprite move a constant speed no matter how fast I move the mouse...

thanks
My Games on google play

ImageImage
B
30
S
6
G
4
Posts: 97
Reputation: 3,008

Post » Sun Oct 04, 2009 2:16 am

Is this what you are trying to do: Move at Angle example

The sprite should move towards the mouse at a constant speed.
B
77
S
49
G
25
Posts: 346
Reputation: 17,409

Post » Sun Oct 04, 2009 2:58 am

I think you pointed to the right direction, uberlou. Even if not, at least I learned something again :mrgreen:

And if you don't mind, I added TimeDelta to the move at angle action, as well as adding the set angle towards position action, also with TimeDelta, to make it really behave constant :wink:

[url:25oxtol9]http://www.filedropper.com/movingconstantly[/url:25oxtol9]

4ror, I hope you finally found what you were looking for? :)
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests