User Tag List

Results 1 to 4 of 4

Thread: making own collision

  1. #1
    No Products Registered

    Join Date
    May 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    making own collision

    Hi
    I having problems with the collison my active object is static,game view is from top

    My move code is
    Always---Player-set X/Y pos to Alterable value X/Y("Player")
    set angle to ATan2(YMouse-Y("Player"),XMouse-X("Player"))*-1+0
    Repeat while W is pressed---Player-Add Sin(Angle("Player")+90)*3 to Alterable Value X
    Add Cos(Angle("Player")+90)*3 to Alterable Value Y

    what can i do so my active dont get thru other objects??

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    You can make it so that when your object overlaps the object you don't want it to pass through, and the user is holding down the "W" key, it move the player backwards:

    Conditions are in the default color.

    Actions are in red.

    "Player" is overlapping "Obstacle"
    Repeat while "W" is pressed
    Subtract Sin(Angle("Player")+90)*3 from Alterable Value X
    Subtract Sin(Angle("Player")+90)*3 from Alterable Value Y

    Hope this helps!

  3. #3
    No Products Registered

    Join Date
    May 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes Thanks
    I made
    "Player" is overlapping "Obstacle" without
    Repeat while "W" is pressed
    now it works

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Okay, glad to help!

Similar Threads

  1. Collision Example
    By variant in forum File Archive
    Replies: 3
    Last Post: 26th December 2009, 07:20 PM
  2. Collision box help
    By AdamK in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 18th December 2009, 05:41 PM
  3. Collision Help
    By Sumo in forum Lacewing
    Replies: 17
    Last Post: 19th November 2009, 07:02 AM
  4. Making parts of character unaffected by collision
    By Shad0wSP in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 14th May 2008, 02:45 AM
  5. Collision Map?
    By BrandonC in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 13th September 2006, 08:42 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
  •