User Tag List

Results 1 to 8 of 8

Thread: Vector bullet fired from 360...how to set angle to face direction?

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2012
    Location
    Miami, FL
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Vector bullet fired from 360...how to set angle to face direction?

    Hi everyone.
    Simple. I have a vector 360 Clickteam Movement controller that launches a bullet..but the bullet is not round, but an arrow. I want the arrow tip to face the direction its heading in.
    Links, suggestions welcome!

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jan 2010
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wait, if you use shoot in direction of the object you are using, won't it tip in the right direction if you have the correct directional animations? :P

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im not familiar with the Built In Vector Movement, but you can easily find the moving 'direction' of a moving object by using the Adanced Direction Object.
    What you need to do:

    Allways
    - Arrow set Xmemory_ to Arrow X position
    - Arrow set Ymemory_ to Arrow Y position

    Allways
    - ( move arrow )

    Allways
    - Arrow set Angle to ( AdvancedDirectionObject ) 'direction between Arrows old position and Arrows current position'.

  4. #4
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2012
    Location
    Miami, FL
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    King_Cool,
    thanks. I'm going to try that now. I originally figured it was an automated function within the extension that needed to be ticked/checked. Within the same subject, is there anyone that can build and extension or plugin of the sorts? Again, my lack of programming skills and basic trig...this would help so much for prototyping in my case. Would love to see it.
    I'll get back to you and let you know if it worked.

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2012
    Location
    Miami, FL
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    King_Cool,
    I'm a bit lost within your instructions. Not because you lack explanation skills, rather cause I'm not still familiar with MMF2 Event Editor

    "Allways
    - Arrow set Xmemory_ to Arrow X position
    - Arrow set Ymemory_ to Arrow Y position

    Allways
    - ( move arrow )

    Allways
    - Arrow set Angle to ( AdvancedDirectionObject ) 'direction between Arrows old position and Arrows current position'."

    "Set" as in Alterable Value or String? Or something else completely?
    Xmemory... not sure what this is or where to find it.

    (move arrow)...I'm lost.

    Sorry to be such a pain about this. Really appreciate you helping out on this however.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmmm, do you mind telling me exactly what it is you are trying to do?
    Do you 'have' to use the Vector Movement?

    I will be able to better adress the issue you are having

  7. #7
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2012
    Location
    Miami, FL
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure.
    I'm simply having an object shoot a 360 bullet. The bullets trajectory path is controlled by the mouse position, but the bullet sprite always faces down. So if I shoot up, the bullets tip faces down, regardless of what angle I choose.
    I want the bullet to face the direction it heads in. For all 360 degrees. And no, don't need to use Vector movement, just want it to look as smooth as possible is all, with accurate aiming.

  8. #8
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2012
    Location
    Miami, FL
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Solved. Launching an object, I had to create the sprites to match the direction. I did not think it would be so simple.

Similar Threads

  1. Vector angle math
    By tompa in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 2nd December 2013, 07:31 AM
  2. How to get an enemy to face its direction of movement.
    By Narfafian in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 20th July 2012, 12:27 AM
  3. Setting angle to face another object
    By ELCGames in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 27th December 2010, 02:16 PM
  4. Setting angle for a vector movement
    By Brandon in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 8th April 2007, 11:00 PM
  5. how to add to angle of vector movement
    By Deano in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 31st January 2007, 02:23 AM

Posting Permissions

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