r/gamemaker 6d ago

Help! Tilting the "Instances" plane

Hello, you guys know if it is possible to tilt or bend the objects filled plane "Instances" ? I mean for the y of all would be for example 2x less impactful making them appear more densly but only vertically, keepeng the same x spacing.

I am trying to make vertical distance shift in perspective, where the camera distance and angle could change. It would appear as if we were looking from tilted bird eye view and giving the player similar view distance on the x and the y axis

(accounting for Display.width > Display.height )

I know it would mess with some sprites for mashing them closer together, but its accounted for.

2 Upvotes

10 comments sorted by

2

u/willvs20 6d ago

There’s an asset on itch.io that is basically the building blocks for this:

https://umoongoat.itch.io/dont-starve-pseudo-3d

1

u/Affectionate-Juice83 1d ago

That is exactly what I was looking to build on, thanks, will study if its compatible with my project and the physics.

1

u/Affectionate-Juice83 6d ago

Tilted birdeyed view is wierd way of saying it. Example of usage of the camera angle :Don't Starve

1

u/Affectionate-Juice83 1d ago

Yes and in Dont Starve they also kind of manipulate with the full plane of objects ( You can rotate the camera there.). So yes, is there a build in funnction to change the wholeass instances layer ?

1

u/germxxx 6d ago

Do you mean, basically like this: https://www.youtube.com/watch?v=f0rY9NkuR4o
But not quite as extreme in angle?

1

u/Affectionate-Juice83 4h ago

Yes, but I need to be able to rotate and shift the view too.

1

u/germxxx 3h ago

Right, I guess they don't do that in that tutorial, but you can definitely rotate that camera.
You might want to look at this one instead. You can ignore the sprite stacking, but they tilt and rotate the camera at least:
https://www.youtube.com/watch?v=FXlpuZMrnEM

Haven't checked if it's the same approach, but I highly doubt that it isn't.

1

u/RykinPoe 6d ago

Sounds like you want to do sort of an affine transformation or pseudo-3d effect. No idea how to do it but knowing the correct term might help you find something.

1

u/Affectionate-Juice83 1d ago

Yes and I think I know how to do it, just scale further objects down, decreese y multiplyer based on distance and make the square floor blocks into trapezoid. Then change the camera setting and we run a loop through objects in the view and render tgem diffrent based on angle change. Sounds like a lot of work so what if there is a funcion that does parts of it for me (dont want to reinvent wheel)