How to create fake 3D effect in gamesalad?

tomciomalinatomciomalina Member Posts: 19

video of what I would like to create
Hi,
I would like to create a fake 3D effect in gamesalad, I have been searching for some tips or tutorials to create fake 3d but I cant find any. Basically I want the walls to move whenever player is moving, to create this 3d effect.

All I know is that its using replicate behaviour, maybe it has different name?

Comments

  • anotherforestleafanotherforestleaf Member Posts: 5
    edited January 2016

    I know this it not best way but a suggestion. (I have not tested this, just a thought for you to try out). May be is better to use magnitude to define distance between wall and player.

    Create Attribute Distance_Wall_1_to_P & attribute Wall_1_Image

    In Player actor Constrain attr Distance_Wall_1_to_P = Wall 1 position X - self.position

    In actor Wall 1 create rule:
    If Distance_Wall_1_to_P
    * >= 1 & <= 50 then change Wall_1_Image = 1
    * >= 51 & <= 100 then change Wall_1_Image = 2
    * >= 101 & <= 150 then change Wall_1_Image = 3
    * >= 151 & <= 200 then change Wall_1_Image = 4
    * >= 201 then change Wall_1_Image = 5

    • >= -50 & <= 1 then change Wall_1_Image = 6
    • >= -100 & <= -51 then change Wall_1_Image = 7
    • >= -150 & <= -101 then change Wall_1_Image = 8
    • >= -200 & <= -151 then change Wall_1_Image = 9
    • >= -201 then change Wall_1_Image = 10

    Create table Wall 1 Image with row Text, Wall_1_Image, Wall_2_Image, Wall_3_Image... (which is name of 10 direction images of your Wall 1 )

    In Actor Wall 1, constrain self.image = tableCellValue(table Wall 1 Image, Wall_1_Image, 1)

Sign In or Register to comment.