User Tag List

Results 1 to 8 of 8

Thread: dectecting a solid object above

  1. #1
    No Products Registered

    Join Date
    Dec 2007
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    dectecting a solid object above

    okay in my platformer game I've coded a slide system but I've ran into two problems, this is how my slide works currently
    if down and X are pressed play slides in the direction they are facing

    I use 2 objects a player overlay and a collision box object

    the two problems I've ran into are
    1) when I try to make the collision box object shrink during the game but changing it to another frame which is shorter it shoots the player into the ground

    2) how do I detect wether a solid object is above the sliding player so that it can detect wether it is safe to stand up and revert the collision box back to its old self so you wont get stuck in an object?

    if you can help with either of the two it is much appreciated!
    thanks!

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dectecting a solid object above

    What I would do is have a collision box that is the size of the player when moving regularly. When sliding, this box will remain the same size. So when the player stands up you can make sure it is safe by checking that this box is not overlapping a wall.

  3. #3
    No Products Registered

    Join Date
    Dec 2007
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dectecting a solid object above

    man I can't believe I didn't think about that! that's perfect, what about the first question?

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dectecting a solid object above

    I don't know about the first question. I don't know your game's code. Your player is just plunging into the ground for no apparant reason?

  5. #5
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dectecting a solid object above

    It could be a hot spot problem.

  6. #6
    No Products Registered

    Join Date
    Dec 2007
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dectecting a solid object above

    how would I rectify that it if it is?

  7. #7
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dectecting a solid object above

    Check if the hot spot is in the correct position for all images. It is most likely an error with the collision box.

  8. #8
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dectecting a solid object above

    I think he means that the collision box is changing size based on what the player looks like... which shouldn't be. You need to have ONE collision box for each state (standing, crouching). You don't need a different collision box for standing still vs. moving.

Similar Threads

  1. Flash an object to a solid color?
    By N64Mario in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 15th May 2012, 12:27 AM
  2. Strange problem in add solid with detector
    By MEHRDAD in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 13th February 2012, 03:10 PM
  3. Fading an object to solid black?
    By N64Mario in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 3rd March 2009, 08:15 PM
  4. Fading an object to solid black
    By Atom in forum File Archive
    Replies: 1
    Last Post: 3rd March 2009, 05:26 PM
  5. [request] A solid follow engine
    By Raylax in forum File Archive
    Replies: 0
    Last Post: 27th July 2008, 10:00 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
  •