User Tag List

Results 1 to 5 of 5

Thread: push backwards on collision

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Mar 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    push backwards on collision

    Hi guys!
    I am making a platformer and I stuck with this problem.
    How do i make an enemy push/bounce the player backwards on collision?

  2. #2
    Clicker Fusion 2.5 (Steam)
    skycardboard's Avatar
    Join Date
    Jul 2014
    Location
    London UK
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To assist you, one needs to know your starting point and your desired destination quite precisely.

    1. Are you using the non-physics platform movement (hint: don't), the physics platform movement, or something else?

    2. Do you mean a gentle shove or a forceful knock-back?

    Right now I can only suggest experimenting with adjusting the X coordinate of your player object, and checking whether the enemy is to the left or right by comparing X coordinates for the two objects.

  3. #3
    Clicker Fusion 2.5 (Steam)

    Join Date
    Mar 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your reply!

    1. It's physics platform movement
    2. I meant shove back

  4. #4
    Clicker Fusion 2.5 (Steam)

    Join Date
    Mar 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Problem solved.

    Enemy is running towards Player randomly from left/right

    On collision
    if Player X axis position > Enemy X axis position
    ADD 100 (or any number you like) to Player X axis position
    SUBTRACT 20 from Player Y axis position

    On collision
    if Player X axis position < Enemy X axis position
    SUBTRACT 100 (or any number you like) from Player X axis position
    SUBTRACT 20 from Player Y axis position

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS 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)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,396
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    nice solution! I know when you use an 8 movement direction you can select bounce.

Similar Threads

  1. Autoscroll Backwards
    By Puff_N_Stuff in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 10th November 2011, 11:53 PM
  2. walking forwards and backwards
    By jhonson in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 2nd December 2008, 01:45 AM
  3. Counting backwards and forwards at once
    By Mantoid in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th June 2007, 03:47 PM
  4. Backwards Compacy
    By PrincessNinjato in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th November 2006, 11:25 PM
  5. Shoot an object backwards?
    By Michael_Gummelt in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 15th July 2006, 05:44 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
  •