Spawning Item for character to pick up

I am trying to make a 2 player game, and i recently added medkits. but now im trying to get it to spawn in a certain location every 15 secs how do i do this?
when i do play it the medkits always spawn in the top left and lag the game out

Always send a link when you’re trying to get help for a game

1 Like

It lags out because each medkit spawns another medkit, which is not something you want because you’re just going to get more and more medkits spawning more medkits. The whole spawning system just doesn’t work, I suggest having a separate object spawn the medkits in various spots

how do i do that?
cause i am confused hwo to

Just make another object

With the medkit spawning stuff in it

i know i may sound a bit dumb, but what do you mean by that?
and how do i do it?


yes i ahve done that

now put the medkit spawning behaviors in that object

yep done that what now?

Now it won’t lag because you’re only spawning one at once…

Screen Shot 2021-05-01 at 6.10.43 pm

ye but they just spawn up there and i cant seem to move them

and also how would i make a timer thats like, after 20 seconds spawn medkit here

You probably did something else wrong, I can’t even play the game anymore on my end

the default position is set to 0,0

make a position in pixels on where you want it to spawn
(32x32 is one grid block)

Alright. Time to break into my helpful brain sections.

  1. Make the bullets non-solid, but turn collisions ON
  2. Make it so that the medkit can be touched by player 1 and 2.
  3. Make player animations.
  4. Get rid of all these useless blocks:
    They have no code, and they have no looks. Therefore, they are useless.
  5. Change the jump collision to ONLY BOTTOM. This will make it so you can only jump when touching the ground, and not the ceiling or walls.
  6. You don’t need these extra walls around the edges. You can just use the walls that are already in the game, since the player can’t even see out of the screen.
  7. Delete this object. Makes your game run smoother.
  8. Once you’ve deleted all the useless blocks, name EVERYTHING so that you can tell what it is.

That’s all I got now. Good luck.