Discuss Scratch

bywok
Scratcher
100+ posts

2d objects on a 3d plane?

I'm making a raycaster game and I'm trying to use 2d objects in my game. (sort of like in Baldi's Basics.) I've tried it before but t won't show anything. Does anybody know how to do this? I'll credit you if you can help. Thanks
nyankatpro
Scratcher
500+ posts

2d objects on a 3d plane?

You mean like items?
bywok
Scratcher
100+ posts

2d objects on a 3d plane?

nyankatpro wrote:

You mean like items?
Not necessarily. It could be items though. I mean like the trees in Mario 64
Brontosplachna
Scratcher
100+ posts

2d objects on a 3d plane?

This project is a ray-casted environment with a character moving through the environment. But one character makes the code twice as complicated.

It is simplest if the objects in the environment are just more walls. If you are using a sprite as a map of your environment, you can make some of the walls different colors and detect when the new color is touched. You can also make animated walls, as in the above project.
bywok
Scratcher
100+ posts

2d objects on a 3d plane?

Brontosplachna wrote:

This project is a ray-casted environment with a character moving through the environment. But one character makes the code twice as complicated.

It is simplest if the objects in the environment are just more walls. If you are using a sprite as a map of your environment, you can make some of the walls different colors and detect when the new color is touched. You can also make animated walls, as in the above project.

I already did that in dis project. It has falshing walls and doors and also a fan-looking thing. How did you add the zombie?
Methanatos
Scratcher
100+ posts

2d objects on a 3d plane?

I added a zombie to a ray-cast environment by finding all the distances to the walls, sorting those distances, drawing all the far walls, stamping the zombie, then drawing all the nearer walls.

Powered by DjangoBB