Can I make collidables overlap?
dismantle
Member Posts: 7
I really wasn't sure how to phrase my question. I am working on a side scroller in GameSalad. I want the platform too look more 3D so I have my tile-able art showing 2 sides of the platform: the surface (top) and the side. I want my player to run on the surface of the art as opposed to the boundaries of the actor. My terrain is randomly generating so I can't just set up an invisible platform. Is there a way to do this in GameSalad or am I asking too much?
Also, I would really like it if I could slightly overlap my tiles, but as far as I can tell from other posts, thats not possible in GameSalad. The other question is more important to me though. Any help will be appreciated. Thanks.
Also, I would really like it if I could slightly overlap my tiles, but as far as I can tell from other posts, thats not possible in GameSalad. The other question is more important to me though. Any help will be appreciated. Thanks.
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
The basic idea is this...
In the platform actor, constrain attribute game.platformX to self.position.X and game.platformY to self.position.Y.
In the player actor, constrain attribute self.position.X to game.platformY (you may not want to do that, but it's up to you) and self.position.Y to game.platformY+[some number*] (relative to scene, not actor).
*You'll have to play around with this value. It moves the player actor up from the center of the platform actor.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I am kind of interested in this other idea about an invisible box that is constrained to the platform, but if I can't get the constrains to work with this, I doubt I will be able to do that one easily.
And my demo is really just an idea... it's far from a working model of a platformer game. You may want to try a constrained box instead and use that for your collide behavior.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
My forte is graphic design so this is just a new thing for me.
Also wondering if I need to run a delete to remove the invisible actor as it leaves the screen.
Also, constraining the player to the platform overrides the gravity of the player falling.