Getting parse error in 3.1.1: Expected a range in numeric hint

extends Node

export(int, LAYERS_2D_PHYSICS) var collision_mask = 0

const BULLET = preload("res://scenes/Bullet.tscn")

func shoot() -> void:
	var bullet = BULLET.instance()
	bullet.transform = get_parent().transform
	Linker.world.add_child(bullet)

error(3,13): Expected a range in numeric hint.

Hello, I’m trying to follow this tutorial, but I’m stuck on the exporting layers part, and have no idea how to continue. Would like some tips on how to get myself out of this mess.

By 3.1.1 do you mean you’re using Godot 3.1.1? If so try with Godot 3.5, 3.1.1 is long past support and might not support this feature (the tutorial is made in 3.4)

I’ll try that, thank you.

It worked! The error’s gone. Thank you so much.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.