Author Topic: [Solved] Spawning an item at any coordinate  (Read 2247 times)

If someone picks it up you will get a console error. I would advise finding a method native to Blockland.
We can create an item function to check if it exists, if not it returns, but if it exists it will delete. We can name it as Item::deleteCheck(%item)

But the item fading part? I still think that finding the native solution is the way to go.

If someone picks it up you will get a console error. I would advise finding a method native to Blockland.
But the item fading part? I still think that finding the native solution is the way to go.
there will be no console error, if you delete an object with schedules on it, all the schedules are cancelled, which is basically the same as picking up the item

this is what I would personally do:
Code: [Select]
%item.schedule($Game::Item::PopTime-200,fadeOut);
%item.schedule($Game::Item::PopTime,delete);
it might not be the best method though

isn't there a lifetime value or something on dropped items?
that way it would act naturally

either that or spawn the item off of a brick and move it to the desired location?

this is what I would personally do:
Code: [Select]
%item.schedule($Game::Item::PopTime-200,fadeOut);
%item.schedule($Game::Item::PopTime,delete);
it might not be the best method though
You can just do %item.schedulePop(); instead.
isn't there a lifetime value or something on dropped items?
Swollow posted it.
either that or spawn the item off of a brick and move it to the desired location?
Trying to overcomplicate things much?