Character needs to walk around a 3D cube

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

Comments

  • indiegamedesignerindiegamedesigner Member Posts: 154
    You'll have to look at switching layers and creating a matching isometric character to match your isometric cube. Here is a reference image from Google Images;
    image

    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
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You could hire @Socks. He seems to have mastered isometric perspective in GameSalad.

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

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited May 2013
    Oh Socks, huh. He'll probably come up with something like this... AAA*sin(self.Time*BBB)+CCC ;)
  • SocksSocks London, UK.Member Posts: 12,822
    Oh Socks, huh. He'll probably come up with something like this... AAA*sin(self.Time*BBB)+CCC ;)
    @Braydon_SFX

    Bingo ! That's the answer* ! ;)





    (*to something).
  • SocksSocks London, UK.Member Posts: 12,822
    edited May 2013
    @tatiang @SlightlyGrim

    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)

    image


    . . . . . . .

    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.
  • SlightlyGrimSlightlyGrim Member Posts: 51
    Thanks everyone, it all has helped but I'm just wondering whether I can use say the image that I want to make invisible as the trigger, say something like when actors position reaches a certain point turn self alpha to 0. Or is there something I'm missing?
  • SocksSocks London, UK.Member Posts: 12,822
    edited May 2013
    . . . . when actors position reaches a certain point turn self alpha to 0
    @SlightlyGrim

    You can use whatever you want to switch the layers on and off, your method should work fine.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Yep this is based on Tshirts layer trick. There is a video on it over a GShelper.
  • SlightlyGrimSlightlyGrim Member Posts: 51
    any chance you have the link for the video, I went and had a look but couldn't find it, thanks fryingbaconstudios and socks
  • SocksSocks London, UK.Member Posts: 12,822
    any chance you have the link for the video, I went and had a look but couldn't find it, thanks fryingbaconstudios and socks
    I don't know the video (my method, above, was not based on it) but you could try and Google it, try 'Tshirtbooth' + 'layers'.
  • UtopianGamesUtopianGames Member Posts: 5,692
    edited May 2013
    We have a layers template (FREE) that you might find useful.

    http://www.deepblueapps.com/layer-selection-template/

    Theres also one in our Pro version of the resource centre.



    Darren.
Sign In or Register to comment.