User Tag List

Results 1 to 3 of 3

Thread: Aiming target

  1. #1
    No Products Registered

    Join Date
    Feb 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Aiming target

    I am looking to make a simple aiming game.
    On one side of screen a target, on the other an arrow.
    I want to rotate arrow until it points in the direction of target.
    I then want to shoot the arrow and see if it hits target and if it doesn't calculate how much it missed by.

    Could someone give me some advice on what I should research to do this. Is it something to do with vectors?

  2. #2
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    BartekB's Avatar
    Join Date
    Aug 2013
    Posts
    667
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MdNelson View Post
    I am looking to make a simple aiming game.
    On one side of screen a target, on the other an arrow.
    I want to rotate arrow until it points in the direction of target.
    I then want to shoot the arrow and see if it hits target and if it doesn't calculate how much it missed by.

    Could someone give me some advice on what I should research to do this. Is it something to do with vectors?
    Yup, if you want to have 360 aiming and a calculation. Maths is your friend here.
    - BartekB, a.k.a Uppernate
    Join the Click Converse Discord! - https://discord.gg/R3WuvF3mHr

  3. #3
    Clicker Fusion 2.5Android Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Wackyjackie's Avatar
    Join Date
    Aug 2011
    Location
    Poland
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check out Advanced Direction Object and its examples. They shall help you. There is a function for rotating in selected direction and other useful stuff, like calculating distances and angles between objects.

    and see if it hits target and if it doesn't calculate how much it missed by.
    If an arrow doesn't hit the target and passes behind it (check if position is greater than position of the target, of course, if the target is on the right side of the screen), then you can calculate distance between an arrow and the target. Like BartekB said, maths (and Advanced Direction Object) is your friend here .

Similar Threads

  1. aiming like a clock
    By theninjablooper in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 6th December 2010, 10:08 PM
  2. analog joystick for aiming
    By theninjablooper in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 29th September 2010, 11:10 PM
  3. Java+360 aiming
    By Watermelon786 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 20th March 2010, 11:42 PM
  4. Mouse aiming help
    By Codemonkey in forum File Archive
    Replies: 4
    Last Post: 20th May 2008, 07:50 AM
  5. Mouse aiming
    By Jikito in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 5th February 2008, 07:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •