How can I create a system where I select the location where my player will spawn on the map, like a battlefield?
There’s probably a dozen different ways. Here’s one:
- create a
Map
widget with aCanvas
and anImage
- create
Spawn Point Actors
and them to the world at desired world transforms- have them create
Marker Widgets
and add them to the map’s canvas - have each
Marker Widget
dispatch a click - have the
Spawn Point Actors
listen to its widget’s dispatcher and spawn the player at its own location
- have them create
Alternatively, have the Map Widget fetch spawn point actors and create widgets.
1 Like