Skip to main content

Command Palette

Search for a command to run...

Pickups

Published
1 min read

You can simply create a floating animation using the code bellow and then add a Collision Event to pickup the object actually.

y = ystart + sin((get_timer()/500000)*5);

In the collision it can be like this:

with(instance_create_layer(other.x, other.y, "LayerName", Object_name)){
    //some initialization
}
instance_destroy();