platform help

tysonwillstysonwills Member, PRO Posts: 24
edited June 2012 in Working with GS (Mac)
I have been trying for days now to create a moving platform that has a hole in it that the player can jump through and land on the platform, but he can still fall down throught the hole from above.
I can do it ok if the platform has movable ticked but anything above lands on the platform it makes it fall downwards with the item.
Pleas can someone help it is driving me nuts. cheers

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Can you post a video showing what's happening? You might just need to set the platform's restitution to zero and make its fixed rotation checked.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tysonwillstysonwills Member, PRO Posts: 24
    I have attached the file to see if anyone can help.
    The player seems to be able to jump through the platform at one end and after a while eventually falls down.
    Please someone help

    http://www.bic-designs.co.uk/henry/platform/jump_test.zip
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited June 2012
    Yeah, that's a strange one. There's a hero actor that falls (accelerate 2000 @ 270°) onto a moving platform (constrain linear velocity x to 100). The hero can move left and right along the platform, but at one end of the platform the hero just falls right through it as if it's not there. Similarly, jumping under the same platform causes the hero to bump up against it except at the end, where the hero can just jump up through it.

    So far, I'm stumped. Maybe someone else can help...

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tysonwillstysonwills Member, PRO Posts: 24
    hi guys
    surely someone out there can solve this problem, please i am going mad trying to sort.
  • poorcollegedevpoorcollegedev Member Posts: 289
    Sometimes, when I have a problem, I completely start over and most if the time it's fixed
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Sometimes, when I have a problem, I completely start over and most if the time it's fixed
    True, but I was able to reproduce this effect in a new project file.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tysonwillstysonwills Member, PRO Posts: 24
    thanks fgor the comments guys any chance of the demo file tatiang
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    thanks fgor the comments guys any chance of the demo file tatiang
    The reproduction of the problem? Sure. :P I didn't keep it, but here's another version I just made: https://www.dropbox.com/s/igrj74lwagyyvvr/non-collide.zip. The problem's not as evident, but it's still there. If you move left (left arrow key) along the platform, you eventually fall through the platform actor (before you reach the "hole").

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tysonwillstysonwills Member, PRO Posts: 24
    thanks tatiang it is a really puzzling problem there must be a reason for it, and a solution!
  • Bilzo12Bilzo12 Member Posts: 70
    edited June 2012
    Hey guys I'm not sure if this will work but I had a idea I can't test it out because I am nowhere near my computer so I thought I would just post it here anyways maybe if you try this.

    For the platform with the hole in it try leaving the platform blank and creating 2 actors in both of them put a collide with the hero behavior then put them both on the screen on the left and right side of the platform but leave a gap in the middle that might work so the hero can go left and right without falling but can fall through the gap.

    Sorry if it doesn't work just an idea that popped through my head.

    Oh and to get the player to jump through the hole and land on top without falling through @tshirtbooth had created a tutorial for it if it not him I'm sorry to who created it. Just make a new a tor put it in the gap of the two actors and I will find Tshirtbooth tutorial for you.

    Bilal
  • Bilzo12Bilzo12 Member Posts: 70
    I didn't find it sorry but if you find it just follow it and your fnished
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    edited June 2012
    The problem is having "Wrap X" turned on in the scene. Its because the platform is on the right -- no wait-- its wrapped to the left -- no wait -- its on the right -- no wait -- its wrapped to the left.

    @Bilzo12 is correct. If you uncheck wrap X, and If you place two copies of the platform actor so that the correct gap is formed then the problem goes away.

    To get the platforms to wrap, use a rule in the platform:

    When self.Position.X > (game.Screen.Size.Width +( self.Size.Width/2))
    -- Change Attribute: self.Position.X To: -( self.Size.Width/2)

    That should fix it!
  • tysonwillstysonwills Member, PRO Posts: 24
    cheers guys can anyone do a file using all the advice as i am now more confused as ever
  • tysonwillstysonwills Member, PRO Posts: 24
    can anyone do me a mockup file
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Did you try @RThurman's advice about turning off wrap and using a rule to wrap the platform actor based on its x position?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tysonwillstysonwills Member, PRO Posts: 24
    Hi Guys still looking for someone to make this easy for me to grasp.
    Can anyone please do a sample file Please it is driving me mad
Sign In or Register to comment.