1
Programming Questions / Re: Help with secret items
« on: January 12, 2015, 09:50:06 PM »Maybe do something like this with the object that acts as the parent for spikes and fruit and such...
(As long as it doesn't overwrite an event of any sort.)Code: [Select]Secret Item collision with Player:
with(spike_fruit_parent) {alarm[0] = 2;}
instance_destroy();
The exact object names are probably different or need to be created.Code: [Select]Alarm[0] Event of spike_fruit_parent:
image_alpha -= 0.05;
if image_alpha <= 0 {instance_destroy();}
else {alarm[0] = 2;}
Something like that? You might have to tweak the timing a bit.
do you also know how this works when I want to let something appear after collecting the item, like a warp?