Floor sliding
Gene4Gamers
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
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.
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
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
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
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
Have you tried the Move behaviour ?
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
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
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
@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