How do I limit drag speed?

0 favourites
  • 3 posts
From the Asset Store
Use inertion of your movements to throw, rotate your objects and etc. Objects can interact with others while dragging.g
  • 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!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Basically, you remake the drag behavior with an added 'speed limit'. I've attached a capx for you.

  • Ultra awesome! Thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)