[4.5.9: Arcade Platformer] Help With A Custom Tile

thorarvidsson

New member
Hi!

I need help with making a tile for my game. I am making a sort of arcade style game about a dog. One of the main mechanics of the game is to sniff up powerups/keys from the ground. However, I don’t know how to program this tile.

I’m thinking kind of like this. You press the B button. When B is pressed and you walk over the tile, a powerup launches up. While if you’re not holding down B and walk over the tile, it just acts like a solid.

I'd really appreciate it if someone can help me.
 

mouse spirit

Well-known member
Hi!

I need help with making a tile for my game. I am making a sort of arcade style game about a dog. One of the main mechanics of the game is to sniff up powerups/keys from the ground. However, I don’t know how to program this tile.

I’m thinking kind of like this. You press the B button. When B is pressed and you walk over the tile, a powerup launches up. While if you’re not holding down B and walk over the tile, it just acts like a solid.

I'd really appreciate it if someone can help me.
This may be better placed in the help section. But no worries,I'll try to explain what you can maybe do.

If it's a sidescroller , I'd make a tile , that is not solid, above whatever tile your going to be sniffing.( So the dog will be in about a the middle of this tile )
And so the tile will be active.

Now in this tile code, you would check if B is pressed. If YES, then have code to pop up a power up .

Also maybe press up or down only to pickup items. That way when they fly out,they sit there until you grab it.
But if the number is not 04, then that tile is done until you leave the screen.

Another thing,could be that when you're touching one of these tiles, it could be constantly changing a variable BUT if the variable happens to be say,04, when you press B, only then will a treat or power up happen.

If it's a Zelda type overhead 4 way walking game, same thing, basically.

If you need like coding help,let me know.
 
Top Bottom