godot set tilesteemCreated with Sketch.

in #godot8 years ago

It is from godot 2d demo isometric

func _input(e):
    if (e is InputEventMouseButton
    and e.button_index == BUTTON_LEFT and not e.pressed):
        var gmpos = get_global_mouse_position()
        $floor.set_cellv($floor.world_to_map(gmpos),1)

Coin Marketplace

STEEM 0.12
TRX 0.34
JST 0.033
BTC 123713.28
ETH 4532.64
BNB 1319.56
SBD 0.77