Parser Error: Unexpected assign.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Gael
var invinsible = false setget set_invincible

signal invincibility_started
signal invincibility_ended

func set_invincible(value):
	invinsible = value
	if invinsible = true:

the error is at if invinsible = true:

:bust_in_silhouette: Reply From: deaton64

single ='s sign:

if invinsible == true:

Thank you very much!

Gael | 2022-10-03 21:16