Conveyour Belts

boruokboruok Posts: 19Member
in 2D

How make conveyour belts without StaticBody2D? I know that StaticBody2D have builtin property constant linear velocity wich can directly affect into KinematicBody2D, but StaticBody2D is bad approach if you have ice-blocks with 16x16pixels and you must fill level with them.
I've tried following code with TileMap:

var speed: int = 50

func _on_overlap(actor: Actor) -> void:  # actors overlaps from top
    actor.velocity.x += speed

but that doesn't behaves like if you used StaticBody2D with constant linear velocity.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file