How do I limit drag speed?

Get help using Construct 2

Post » Tue Mar 11, 2014 11:19 am

Hi all,
I'm a bit new to Construct 2 and wondered how to limit the speed at which you can drag and drop.
Example: Let's say you can drag a balloon around, and a laser beam is firing down the middle of the screen every so often. Well, if you're dragging so fast that the balloon is going 200 pixels at a time, and you've got a 50 pixel balloon and 5 pixel laser, the balloon might skip right past that laser beam and not pop. So you'd want to limit the speed dragging works.
Or maybe you're making a game where you can throw a boomerang by dragging it around. You don't want to be able to throw it at light speed, though. It should only be able to travel a certain # of pixels at a time.
Any advice? Or an example capx someone can provide? Thanks!
B
3
S
1
Posts: 8
Reputation: 352

Post » Tue Mar 11, 2014 12:37 pm

Basically, you remake the drag behavior with an added 'speed limit'. I've attached a capx for you.
You do not have the required permissions to view the files attached to this post.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,689

Post » Tue Mar 11, 2014 3:26 pm

Ultra awesome! Thanks!
B
3
S
1
Posts: 8
Reputation: 352


Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot], Kin, mikehive, ratboy3, tinhofiel and 36 guests