User Tag List

Results 1 to 4 of 4

Thread: Need help with collisions + action

  1. #1
    No Products Registered

    Join Date
    May 2008
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with collisions + action

    After trying out various options, I got a little stuck on some issues.

    One being limiting players to within the frame with 8-directional movement. How exactly do I have the player not go out of the frame, but not get stuck in the edge? I've tried bouncing the player back if they get closer than 0 pixels away from the edge, but after a couple bounces, or if the player approaches the wall slowly to cancel the bounce, the player gets a few pixel lengths into the wall, and can no longer move. It works so nicely in "Try Movement" that I know this is a really simple issue.

    The next issue is colliding with another object and bouncing back. The thing is that the bounce action just isn't sufficient unless the active object's decel is slower than I want (which makes controlling the character normally more difficult). Most of the time the two objects will continue to overlap after the initial bounce, especially if the player lets up on the keys and is already decelerating before the collision. I want the active object to collide, then go back the way that it came a bit, while not changing it's direction. So pretty much I want it to bounce, but far enough away that it isn't still colliding (or if it is, get tossed back again).

    I've only just started playing with this a couple days ago, and going in blind, so I'm sorry if these are simple problems. Actually I hope these really are simple so they can be solved quick, no problem.

  2. #2
    Clicker Fusion 2.5 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Location
    Turku, Finland
    Posts
    1,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Need help with collisions + action

    What build are you using? I remember I had the same problem with getting stuck to the walls before, but I haven't had it in a while now.

  3. #3
    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: Need help with collisions + action

    try testing the position for leaving the playfield, then use bounce.

  4. #4
    No Products Registered

    Join Date
    May 2008
    Location
    U.S.A.
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Need help with collisions + action

    First, add an event- when player leaves window, then stop.

    Go to player, then position, then test position and choose the arrows pointing outwards. Then choose player, movement, and stop.

    Second, try adding in the condition, Only one action when event loops. This is really useful for random stuff that seems off, i use it ALL the time. Go to special, then limit conditions and only one action when event loops.

    Third, try what i said above, but if not (i'm not really sure if i understand the situation) have the other object bounce back too, if that is possible in your game.

Similar Threads

  1. Collisions object
    By Roseweave in forum Extension Development
    Replies: 14
    Last Post: 17th June 2008, 04:32 PM
  2. Collisions with 247
    By LB in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 27th April 2008, 01:52 AM
  3. Collisions.
    By Conno in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd November 2006, 06:02 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
  •