Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)
You are not logged in.
Pages: 1
Hi, first post here. I made this account because I've been stuck on making a game mechanic for a GB studio game jam and I figured this is the right place to ask.
I've shaved down the sample project to only contain the top-down code. I'm trying to make a puzzle game where the player has a magnet gun that attracts/repels crates based on their charge.
Essentially, A will emit a positive charge and B will emit a negative charge. when the button is pressed, the nearest crate that the player is facing will be attracted/repelled 1 tile. I've been trying to repurpose furniture pushing/pulling code but it's just not working. Any pointers?
Offline
Which part of the mechanic do you need help with? Detecting the object when a button is pressed? Or moving it?
Offline
So far, I have made an invisible projectile spawn from the player and hit the crates. Based on its collision layer the crate moves. What I'm stuk on right now is making sure that the projectile isn't hitting crates through walls, because for some reason, GB studio only counts collision layers as "hits" for despawning the projectile.
Essentially, I need to know how to despawn a projectile when it hits a wall
Offline
I managed to fix the error on my own. All I needed to do was create invisible actor "walls" for the projectile to crash into.
Offline
Pages: 1