Shooting bullets toward cursor WITHOUT aligning sprite

From the Asset Store
Mouse cursor is something that the player controls and sees all the time, that's why it is so important to make it cool!
  • I'm new to construct, so I apologize if this is a rather obvious question for those of you who are more experienced.

    I'm trying to allow the player to shoot towards the cursor, but my game's perspective is top down with a slight angle so rotating the sprite freely does not work so well. Any tips?

    I'm aiming for a mechanical movement similar to Nuclear Throne if any of you are familiar. Is there a way to cause my player to face in a cardinal direction based on where the cursor is relative to the player? (etc if cursor is between 45 and -45 degrees, use the right-facing sprites.)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Uh, im completely new at this too so im not sure if this will even help, but something about the mouse aim :

    OnRightButtonClicked> "Player" Spawn "bullet" on layer 0

    "bullet" Set angle toward (Mouse.x, Mouse.y)

    this worked for me, havent got a clue about the sprite change thing though.

  • I used this same technique but I seem to be getting a weird offset issue

  • you can try with "is between angle" condition

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