Quantcast
Channel: Questions in topic: "level-design"
Viewing all articles
Browse latest Browse all 205

Should player & pickups be children of the level, or keep them separate?

$
0
0
This is a question about best-practice rather than anything technical, and the answer might be personal preference. So I have a level which is one mesh, imported from 3Ds max. I have trigger objects in the level (lets call this "level1"), as well as pickups. I've put these gameobjects as children of level1 because I thought that'd make sense in case I ever needed to move or scale the level. It'd save time having to reposition everything separately. But I'm having problems with local positions. An example is that Y position of 0 is very different to the global y axis, and it's getting a bit confusing and annoying. Do you guys add collectable items as children of the level, or keep them separate? Should the player be a child of the level too? Here's my game, it's 3D but most of the action happens on a 2D plane (although I always use vector3, which might be the cause of my headaches tbh). ![game][1] [1]: http://i.imgur.com/FDrWCLU.jpg

Viewing all articles
Browse latest Browse all 205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>