How to create fake 3D effect in gamesalad?
tomciomalina
Member Posts: 19
in Tech Support
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
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
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)
Do a search for Stormy and 3d and you will find a lot of stuff @StormyStudio did in the past.
http://forums.gamesalad.com/discussion/34527/stormys-3d-pseudo-blocks-with-9-vids-now-with-parallax-blocks-in-invaders
Lump Apps and My Assets