Character needs to walk around a 3D cube
SlightlyGrim
Member Posts: 51
Hi guys
Basically I have a box like this http://www.deimel.org/images/plain_cube.gif and I'm trying to get my character to be able to walk in front and around the box.
Some one helped me previously with this but sadly I have lost that work so starting from scratch.
Anyone help or know away to do this?
Thanks
Basically I have a box like this http://www.deimel.org/images/plain_cube.gif and I'm trying to get my character to be able to walk in front and around the box.
Some one helped me previously with this but sadly I have lost that work so starting from scratch.
Anyone help or know away to do this?
Thanks
Comments
We're planning to do isometric tutorials and sell isometric art in the near future. Hope that reference image and the key word 'Isometric' points you in the right direction in the mean time.
IndieGameDesigner.com - Game Asset Store - Game Templates - Free Assets
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Bingo ! That's the answer* !
(*to something).
Like @indiegamedesigner says, it's fairly straightforward to do, you simply need to switch layers.
Three layers in this order.
1) Foreground character.
2) Cube.
3) Background character.
Both the 'Foreground' and 'Background' follow the same rules, they move together as one . . . but they toggle their alpha channels on and off - so when one is on the other is off (and visa versa).
So when you want the character to walk in front of the cube the Foreground character's alpha will be set to 1 (and the Background character's alpha will be set to 0).
& when you want the character to walk behind the cube the Foreground character's alpha will be set to 0 (and the Background character's alpha will be set to 1).
Result: (I'm using three layers here Foreground / Cube / Background)
. . . . . . .
To automate these alpha channel changes place some 'sensors' around your cube, when the character collides with these sensors the relevant alpha channel changes are made.
Hope that makes sense and offers a few more clues.
You can use whatever you want to switch the layers on and off, your method should work fine.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
http://www.deepblueapps.com/layer-selection-template/
Theres also one in our Pro version of the resource centre.
Darren.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS