map programming
-
I'm looking at the map editor and the functions for the maps.
So far I have gotten the maps to display and I have been looking at the example programs which use the map collision functions.My question is are there functions available that can check what tile in the map is in what x and y position or even let you change the map that has been loaded? Maybe to make a door appear open or closed. Or is just interacting and colliding with sprites all you can do with the maps?
-
@Hitomi IDK how the map functions work, but i can assume you could just code in the placement of tiles... I asked for help concerning the image editor, and no reply, so... Apparently they are making sprite sheet development available but, future?! so.... I know this doesnt answer you directly, but, you can make it happen... IDK how cause, only thing ive played with is a static image... probably cause... thats what we were allowed access to, I dont see much point designing a code to break a full image into a sprite sheet (regardless if this is "the old way" there is an entire coded function for sprite animation) if they are just going to allow us to do it... I kinda wish more development time would have went into the user aspect, rather than paying people for assets, and then spending the time configuring these peoples assets into folders... considering i think most people are just going to remake mario or metroid.... and, Im sure after folders are introduced I will have to rework my own games to work alongside the change... wish there was more documentation... I played with 3d stuff the other day and after giving myself a headache i came up with a kind of solution to my problem... but, it only had me asking more questions at the end...
-
I know I can draw things like the gothicvania demo does if there aren't the map functions I was hoping there was.
-
This post is deleted! -
I think you're looking for the
collideMap()
anddetectMapCollision()
functions. However, we are missing a bit of functionality which will be necessary for what you're trying to achieve. In a future update, we will be adding the ability to create specific "flag" boxes which you can then in your program recognise and handle differently.Unfortunately, until then, you will have to use an array of "tiles" or an array of collision data mapped onto your map image, and then use a pixel co-ordinate -> array co-ordinate conversion to tell you "where you are" in the collision array.
See the below tutorials for an example. The concept is applied here in a side-scrolling manner but would exactly the same for a top-down style.
https://fuzearena.com/help/view/Game - The Level
https://fuzearena.com/help/view/Game - The Character -
Thank you, that's what I've been looking at and what I wanted to know.