To start with, this is the creation code. When I place down the block, I define variables that show up later on in the alarm code.
Creation event :
timing=60 alarm[0]=timing obj=0
variable obj will be the variable containing the object ID. Here's where things screw up though.
Alarm 0 event :
alarm[0]=timing obj=instance_create(x+8,y+8,obj_lightning) if right=1 obj.direction=0 if up=1 obj.direction=90 if left=1 obj.direction=180 if down=1 obj.direction=270
I would assume it's something I'm doing wrong with the code where obj is equal to the created object, but that same code seemed to work for me in the past.
Any ideas?



Find content
Not Telling
