You are viewing a single comment's thread from:

RE: Does anyone have a subject they're particularly stuck on with games development or a genre they want a write up for that there aren't many tutorials on?

in Game Development4 years ago

I have a big problem with slopes in 2d horizontal spaces, probably in 3d ones and even in 2d topdown if I give that a chanche. Slopes, slopes everywhere and I can't wrap my head around them 😭😂

Looking foward to your tutorials/devlogs!

Sort:  

Are you talking about isometric art? In this case I'd imagine it's just a bit of dev trickery, it depends on how the tilemaps and navmesh on either Godot and Unity are rendering but you could conceivable just put in a plane or something and connect it up to the navmesh so it all bakes correctly and do it that way.

It's all about poking the engines and learning how their insides work. Once you have a detailed knowledge of that it's easy to even create work arounds for problems you're facing unless there's a heavy amount of maths involved.

By the way I thought about it some more and I reckon if it's 2D then the sloped isometric tile is exactly the same as a flat one believe it or not, they probably detect whatever is moving and have the character or whatever animate the movement downwards to make it look like it's going down then have it return to normal after exiting the slope tile.

Oh yes I didn't detailed it too much, my main problem as you got that is with collision detection of the slopes. I'm using Game maker studio 2 for now and looking foward to jump onto Unity in the near future. What I wish to code is something akin to what good old super mario world do with slopes. Thank you for that clarification!

I'm afraid I don't know anything about Game Maker Studio 2, what I would say though is you should get into Godot or Unity sooner rather than later. Other lesser known software tend to not be as feature rich as either of these engines and you may find yourself pretty limited by them.

If we're talking 3D then yes, a simple plane with it's own collider and tag or however you assign objects in Gamer Maker Studio 2. I'm recommending the other engines because in Unity at least they have a built in physics material that enables sliding behaviour and so on without any code you just need to fiddle with some settings.

Yeah I think is for the better and to have an easier time to make games right now to switch on Unity, there are so many coding things I don't know or get really complicated and now that I see that the built in system can work around many of my problems I think I'll wrap up somethings on GMS 2 and move to something new for now! Thank you for your advices!

I know this is a bit of an old post but I finally found something on detecting individual tiles like I mentioned. So what I would do with the information in this video is detect a 'slope tile' and then I would have the player or NPC etc. play a sloping animation as they move across the tile then reset the moment they're off it depending on the direction they're facing.

Hope this helps you out, knew there would be something out there just a matter of digging through the internet for it.

Dont worry its very informative and tile based collision is something I want to look into as it saves so much time. Still undecided if go on Unity or Godot next. What would you reccomend?