Floor sliding

Gene4GamersGene4Gamers LebanonMember, PRO Posts: 57

I want to let my app looks like an endless runner, and I've tried literally every known way to make my five floors slide but it's not working, when I press movable the physics start and the floors drops....

Any help over here?

Plus I'm publishing my game on android devices so what should I use to let it fit the graphics perfectly : overscan,letterbox or stretch?

Regards,
Gene4Gamers!

MAKE GAMESALAD INTEGRATE ADMOB ( Google ADS ) :

Go to this link : http://bugs.gamesalad.com/show_bug.cgi?id=261

Find the " vote " button and press it

Comments

  • firezombie444firezombie444 Member Posts: 49

    Can't you just animate the character when he collides with the floor to make him look like he's sliding? I think that's what most people do.

  • SocksSocks London, UK.Member Posts: 12,822

    @Gene4Gamers said:
    I've tried literally every known way to make my five floors slide but it's not working . . .

    That's a very vague question, wanting your 'five floors to slide' could mean numerous things. I think you'd get more help if your question was a little less vague.

  • Gene4GamersGene4Gamers LebanonMember, PRO Posts: 57

    @Socks said:
    That's a very vague question, wanting your 'five floors to slide' could mean numerous things. I think you'd get more help if your question was a little less vague.

    I want them to look like moving, like in an endless running game, I tied moving them then creating a spawn actor but due to physics the floors are falling, also tried moving them in linear velocity but same

    MAKE GAMESALAD INTEGRATE ADMOB ( Google ADS ) :

    Go to this link : http://bugs.gamesalad.com/show_bug.cgi?id=261

    Find the " vote " button and press it

  • ImNiklasImNiklas Member Posts: 103

    The easiest thing would probably be to have 2-3 parts of the floor and have a rule that says:
    If self.position.x < -self.size.width / 2
    --Change Attribute self.position.x to game.screenSize.width + self.size.width / 2

    I hope you understand what I mean and can add to this by yourself :)

  • Gene4GamersGene4Gamers LebanonMember, PRO Posts: 57
    edited August 2014

    @ImNiklas said:
    The easiest thing would probably be to have 2-3 parts of the floor and have a rule that says:
    If self.position.x < -self.size.width / 2
    --Change Attribute self.position.x to game.screenSize.width + self.size.width / 2

    I hope you understand what I mean and can add to this by yourself :)

    I didn't :disappointed:

    That's my floor can you edit it and send me the file?

    MAKE GAMESALAD INTEGRATE ADMOB ( Google ADS ) :

    Go to this link : http://bugs.gamesalad.com/show_bug.cgi?id=261

    Find the " vote " button and press it

  • Gene4GamersGene4Gamers LebanonMember, PRO Posts: 57
    edited August 2014

    @firezombie444 said:
    Can't you just animate the character when he collides with the floor to make him look like he's sliding? I think that's what most people do.

    I know but I can't

    MAKE GAMESALAD INTEGRATE ADMOB ( Google ADS ) :

    Go to this link : http://bugs.gamesalad.com/show_bug.cgi?id=261

    Find the " vote " button and press it

  • SocksSocks London, UK.Member Posts: 12,822

    @Gene4Gamers said:
    I want them to look like moving . . .

    Have you tried the Move behaviour ?

    @Gene4Gamers said:
    I tied moving them then creating a spawn actor but due to physics the floors are falling . . .

    Not sure what 'due to physics' means in this context ? Are you able to be more specific ?

  • Gene4GamersGene4Gamers LebanonMember, PRO Posts: 57

    @Socks said:
    Not sure what 'due to physics' means in this context ? Are you able to be more specific ?

    When I check the " movable " box, my floors fall down

    MAKE GAMESALAD INTEGRATE ADMOB ( Google ADS ) :

    Go to this link : http://bugs.gamesalad.com/show_bug.cgi?id=261

    Find the " vote " button and press it

  • SocksSocks London, UK.Member Posts: 12,822
    edited August 2014

    @Gene4Gamers said:
    When I check the " movable " box, my floors fall down

    Do you know why they fall down ? Whatever rules are causing them to fall down should be removed or disabled.

  • Gene4GamersGene4Gamers LebanonMember, PRO Posts: 57

    @Socks said:
    Do you know why they fall down ? Whatever rules are causing them to fall down should be removed or disabled.

    I have an actor on top of it, and that actor is movable,
    So I've added to each floor a collide attribute with the actor above so the above actor wont fall down
    So I cant remove it

    MAKE GAMESALAD INTEGRATE ADMOB ( Google ADS ) :

    Go to this link : http://bugs.gamesalad.com/show_bug.cgi?id=261

    Find the " vote " button and press it

  • Gene4GamersGene4Gamers LebanonMember, PRO Posts: 57

    Dont worry guys,

    I added another actor below each floor and set it width to floor width and it height to 1, then shut all his physics and added an attribute to it so he can collide with the floor, therefor the floor wont fall

    MAKE GAMESALAD INTEGRATE ADMOB ( Google ADS ) :

    Go to this link : http://bugs.gamesalad.com/show_bug.cgi?id=261

    Find the " vote " button and press it

  • ImNiklasImNiklas Member Posts: 103
    edited August 2014
  • Gene4GamersGene4Gamers LebanonMember, PRO Posts: 57

    @ImNiklas said:
    Gene4Gamers‌ Here you go: https://dropbox.com/s/xtasl67nnos6zde/Moving%20Floor%20Demo.gameproj
    Works like a charm :)

    Thank you but I've already fixed mine, I had a collide attribute to my floor which has prevented it of staying

    MAKE GAMESALAD INTEGRATE ADMOB ( Google ADS ) :

    Go to this link : http://bugs.gamesalad.com/show_bug.cgi?id=261

    Find the " vote " button and press it

Sign In or Register to comment.