Making 3D is hard so I decided I would teach you. This isn’t raycasting but it will look 3D.
First make any project, it can be landscape or portrait. Let’s draw the sky and ground.
First you must add a text object, draw the background and draw a trail.
Like this:
set background (__)
set x (0), y (__) ## __ is the width of the trail divided by 2
draw a trail color(__) width ___{
set x (width, (self) y position)
}
Now add buttons for left,right, up and down
Make a tetris in line like this
( the y position is 12.5 and height is 25 )
Add a sprite (ex: tree,)
Make a custom rule called “SPRITE”
In the custom rule add -
SPRITE (size,x,y) {
set sizeup to 1
when game starts {
set x (x) y (y) ## these are parameters
set size percent(size) ## this one too
}
when left arrow pressed {
set position x ((self) x position + _) y ((self) y position
}
when right arrow pressed {
set position x ((self) x position - _) y ((self) y position
}
when (0<(self) x position) and (width>(self) x position) {
set invisibility 0 %
}
when touching edge {
set invisibility 100 %
}
when up arrow pressed {
check once if ((self) size as a percent > 920 {
set size percent(920)
else {
check once if (self) origin y position > (tetris line) y position {
grow by percent(5)
}
}
}
when down arrow pressed {
shrink by percent(5)
}
}
Now add this to any object you want to follow this rule and tada! You can tweak it so that it makes clones. Here is an example project