User Tag List

Results 1 to 8 of 8

Thread: Gta moving

  1. #1
    No Products Registered

    Join Date
    Feb 2009
    Posts
    67
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Gta moving

    Hello,
    I want to create a game like Gta.
    I want to make it 2d, so you can see it from above. How do I make the movement?
    By that way, i want the "character" to look in direction of mouse.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Gta moving

    That is a very specific request. Your best bet would be to check out the Tutorials on the sidebar ---> and learn to make a Custom Movement.

    Wrong forum, by the way.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gta moving

    Janman, look into the Advanced Direction object or some angle algorithms that can be found around.

    For example, you can use the direction between two points using this formula:

    Set angle of Player to:
    Abs(360*Min(Max(YMouse-Y("Player")+1, 0), 1)-(ASin((X("Player")-XMouse)/Sqr((XMouse-X("Player")) pow 2+((YMouse)-Y("Player")) pow 2))+270))

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Gta moving

    ...Or Atan2(YMouse-Y("Player"),XMouse-X("Player"))

  5. #5
    No Products Registered

    Join Date
    Dec 2008
    Location
    U.S.
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gta moving

    Working example ... here. Did I mention I made it? I can modify it for you in a specific way if you want. It uses ATan2.

  6. #6
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gta moving

    I thought ATan2 only worked on HWA. I guess I've been out of the loop. SATs are annoying...

  7. #7
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gta moving

    ATan2 is included as per Build 248, I believe.

  8. #8
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gta moving

    Oh yeah! Nice, I didn't realize that worked.

Similar Threads

  1. Computer moving help !
    By devripper in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 17th February 2012, 12:15 PM
  2. Moving text
    By Rabagast in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 14th January 2009, 06:20 AM
  3. Moving BG's
    By Cossin in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 16th November 2008, 12:25 PM
  4. Moving around a maze
    By wetsuitgirl in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th February 2008, 01:15 PM
  5. moving ?
    By ezra in forum File Archive
    Replies: 4
    Last Post: 19th March 2007, 07:41 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
  •