Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Create a hero and add it to the scene
#the new hero is the last thing in the roster, so grab it out of the back
var lastIndex = global.guildRoster.size() - 1
global.selectedHero = global.guildRoster[lastIndex]
var heroScene = preload("res://hero.tscn").instance()
heroScene.set_position(Vector2(240, 80)) #screen is 540 wide
heroScene.set_display_params(false, true) #walking enabled?, show name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment