User Tag List

Results 1 to 3 of 3

Thread: How to make player bounce back when hitting wall?

  1. #1
    No Products Registered

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

    How to make player bounce back when hitting wall?

    How do I go about making player bounce back off the wall when he is charging? (the player charges like a dash i mean then hits a wall and supose to bounce back)
    I'm using the Platform movement object, i have the charge done but need help with the bounce back method.

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Yima's Avatar
    Join Date
    Feb 2008
    Location
    Sweden
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am not familiar with the plaform movement object, as I normally do my own engines, but the general concept would be that when the player character hits the wall, you reverse the movement direction and manually force the player character to jump. You also probably want to hinder any movement during the knockback. Add a variable called "knockback cooldown", that is set to 1 when the knockback occurs (freeze controls when "knockback cooldown" = 1), and reset it to 0 when the player hits the ground (then the player is free to move around again).

  3. #3
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Yima's Avatar
    Join Date
    Feb 2008
    Location
    Sweden
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Then it works kind of how I am used to. In that case you can probably set the Y velocity to a negative value as well, to make the knockback cause a small jump backwards.

Similar Threads

  1. Objhect following mouse, how to make it stop when colliding with wall?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 23rd August 2012, 09:12 PM
  2. The player is hitting things that aren't there?
    By LemonyLime in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 6th October 2011, 05:37 PM
  3. Way to avoid platforming stop when hitting wall?
    By evilpantsmaster in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 11th May 2009, 04:42 PM
  4. Phizix Makes my Player Bounce instead Walk
    By dragonguy in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 22nd October 2008, 09:39 PM
  5. How do I make an object spin when it hits a wall?
    By Vackin in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 28th October 2007, 05:48 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
  •