KoBeWi / Metroidvania-System

General-purpose framework for creating metroidvania games in Godot.
https://godotengine.org/asset-library/asset/2301
MIT License
1.04k stars 49 forks source link

help with map builder #42

Closed Darmanarnar closed 5 months ago

Darmanarnar commented 5 months ago

trying to use the map builder. Are there any additional things I need to do to get it working with the minimap?

image

image

image

image

I've got the map working without the map builder but have been struggling to get it implemented with it, any help would be greatly appreciated.

KoBeWi commented 5 months ago

Well creating a cell is enough to get it displayed on minimap (after you call update_map() once finished). What exactly doesn't work? Is it not displayed? Does the cell display wrongly? Did you check the generator example in the sample project?

Darmanarnar commented 5 months ago

Well creating a cell is enough to get it displayed on minimap (after you call update_map() once finished). What exactly doesn't work? Is it not displayed? Does the cell display wrongly? Did you check the generator example in the sample project?

I enabled debug for canvas items, It shows the map getting redraw signals when attempting to transition to a new room, but nothing gets updated on the map and the room doesn't change, The map just appears as blank. image

print(map_builder.cells) outputs image

maps folder image

*i also couldn't find the example you mentioned

KoBeWi commented 5 months ago

The example is mentioned here (listing relevant scenes and scripts): https://github.com/KoBeWi/Metroidvania-System/wiki/Specific-Rooms#dice-room---procedurally-generated-rooms

I enabled debug for canvas items, It shows the map getting redraw signals when attempting to transition to a new room, but nothing gets updated on the map and the room doesn't change,

Does this problem happen with non-generated cells? i.e. does the map transition and display correctly?

Darmanarnar commented 5 months ago

The example is mentioned here (listing relevant scenes and scripts): https://github.com/KoBeWi/Metroidvania-System/wiki/Specific-Rooms#dice-room---procedurally-generated-rooms

I enabled debug for canvas items, It shows the map getting redraw signals when attempting to transition to a new room, but nothing gets updated on the map and the room doesn't change,

Does this problem happen with non-generated cells? i.e. does the map transition and display correctly?

no, it's only a problem when using the map builder. I Also tried experimenting with the dice room in the sample project, but I couldn't figure out how to work it. image

after touching the dice it does the animation, the door opens, but there's no transitions and I just fall when trying to exit the room.

KoBeWi commented 5 months ago

I fixed Dice Room in a434c20d07da06bdfc35fa627aa14908a36a82bf (it didn't have scene assigned). It works correctly now:

https://github.com/KoBeWi/Metroidvania-System/assets/2223172/28b6b071-eb87-4271-b907-51ef3ee9a18e