0 Favourites

How do I make an game object to move left and right smoothly

  • Hi,

    I am very excited to start with Construct 2 for game development.

    I`ve been developing a game where I will have a box at the bottom which has an emitter which emits bullets (looks like a turrett )and I want to move that emitter to left and right of the layout based on the mouse position .

    If I move the mouse lower to the layout(bottomleft or bottomright) the emitter was turning to the bottom of the layout and emits the bullets,How can I avoid moving this to the bottom and emits bullets,something like it should always operate between 45 degrees and 135 degrees.

    It should not move more than that and it should turn smoothly between those angles,if I added a keyboard left arrow its moving to left and right arrow to right,but its moving very fast,can we make that moving slowly.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • first, as you are a beginner, must know that angle in construct 2 is counter clockwise, so 45-135 actually means down, you are aiming to -45, -135 .

    mouse solution:

    Subscribe to Construct videos now

    min 8:35 to limit the aiming.

    Subscribe to Construct videos now

    min 4:55 for the actual aiming

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
564 105,240
rexrainbow's avatar
rexrainbow
Unread sticky
763 305,714
asikanddestroy's avatar
asikanddestroy
Unread hot topic
232 177,689
Tetriser's avatar
Tetriser