How do I make a bow and arrow shoot

0 favourites
  • 4 posts
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • Hello people, I'm making a platform game, and I wanted to make a bow shooter like this one:

    youtube.com/watch

    These are the events I made, but they are obviusly wrong

    My idea was to make an object called "InitialPoint" that is created where I first tap on the screen, and then when I drag, it would calculate the angle beetwen the point I dragged and the "InitialPoint".

    I don't know if those events are ok, but when I move my mouse, the "InitialPoint" is where the red doot is, I want it to be like the youtube video.

    I would really appreciate a suggerence or idea, thank you, and I'm sorry if there's an spelling mistake, my native language is spanish.

    Thank you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a suspicion that 'on tap gesture' relies on the user touching and releasing - similar to the difference between 'key is down' and 'key is pressed' in the Keyboard object, or 'mouse button pressed' / 'on click'.

    I'm assuming your users will touch to begin aiming, and release to fire? I can't view the video (very poor internet connections here) so can't verify what you're trying to do, but this is my best guess. If this is the case, you'll want to use 'On any touch start' instead.

    [ Edit: Can confirm, through use of RTFM - tap is a touch and a release within a given time-frame:

    https://www.scirra.com/manual/119/touch ]

  • I have a suspicion that 'on tap gesture' relies on the user touching and releasing - similar to the difference between 'key is down' and 'key is pressed' in the Keyboard object, or 'mouse button pressed' / 'on click'.

    I'm assuming your users will touch to begin aiming, and release to fire? I can't view the video (very poor internet connections here) so can't verify what you're trying to do, but this is my best guess. If this is the case, you'll want to use 'On any touch start' instead.

    [ Edit: Can confirm, through use of RTFM - tap is a touch and a release within a given time-frame: > https://www.scirra.com/manual/119/touch ]

    Exactly, I want to do that, but I want that he can touch anywhere on the screen, and a bow will appear, and he could choose the power and the angle, just like angry birds.

    I will try if I can do something with that manual, thank you.

  • Just change 'on tap' to 'on touch start'!

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