Object placement, can I pick your brains?
-
@SteveZX81 I see you can name the flags and it gives you the position co-ordinates do you write them down? Or will every flag with that name place that sprite? If you figure it let me know lol
-
I'm just writing them down right now, just to see how it goes.
-
I guess it's a moot point now. it seems my map is how can I politely say it.. ..ruined..
if I load the mapeditor, as soon as I select my map, fuze does a hard crash and if I just run my game I now get an error I never got before
"Error:loadimage: attempt to load null FTXheader" Related function definitions: loadmapWhich leads me to believe my map is stuffed.
(nope, the map was fine. the issue was caused by me stupidly deleting an image that the map used. I wrongly assumed if I deleted it in the image editor, it would simply vanish from the map editor.) -
@SteveZX81 iv had the same issue, you cant copy it or select it either straight to a crash. i really should of reported it but i thought i just did something wrong as my other maps have been fine
-
@SteveZX81 Can you share it?
-
@pianofire shared
-
@SteveZX81 OK I have got it. Unshare it again if you like. I will take a look (no promises)
-
@SteveZX81 OK I have a working theory on this. The map is referencing two images. One called tiles which exists and one called new which doesn't. Did you create an image called new add it to the map and then delete it?
If you create an empty image called new I think that you should be able to open the map editor again!
-
@pianofire You are a hero! Thank you so much!
-
@waldron said in Object placement, can I pick your brains?:
@SteveZX81 press x while in the map editor and it will give you the co-ordinates by placing a flag
Whoa, this is a great tip. It took me two hours to place the entities in my game, because I was moving the character around via gameplay with my debug mode enabled (where I print the current X and Y player coordinates), then writing down the coords on paper.
Do you know if these flags be looped through via code? Then I could use the map editor to place entities too-- I could re-work my code to use the flags instead of my array coordinates for entity placement.
-
@Spacemario Yes they can but I haven't done an example yet: https://fuzearena.com/help/view/getMapLocationNames
I did this for the marked areas: https://fuzearena.com/forum/topic/749/new-marked-map-area-functions
It should be similar
-
@pianofire Thanks so much for the info, and holy smokes, it will be amazing to use the map editor for entity placement too! I don't know how this feature flew under my radar!