Hi all! I’m still fairly new to coding, and I have a game idea inspired by the old flash game Super Slyder. The way the game works is this: You play as a little ball creature dude that can move in four directions, up down left and right, using a square grid based movement system. The catch is, when you move, you keep sliding in that direction until you hit a wall or obstacle. Also, any enemies and allies in the level move at the same time and they slide as well. The goal is to figure out how to get your guy to the little portal in each level, while avoiding running into enemies, falling down holes, and lots of other stuff. Here’s a video of the actual game.
So the game I wanna make is basically the same idea but with added mechanics, for example, pipes that have bends in them that your player can slide through and shoot out the other end in whatever direction the pipe end is facing. This would mean that sometimes the player and allies/enemies could be moving in different directions at the same time, which is something that never happens in Super Slyder. That means sometimes players/allies/enemies may collide in unusual ways. So I drew out some plans visualizing what would happen if they collided in these unusual ways, and I’ve attached a picture of those plans. Have a look!
Here’s what I need help with. How should I set up the movement in a way that works as expected even when theres a bunch of characters colliding with each other, some of which are moving in a different direction? A while ago I tried making this game with GameMaker, and all was going well until I realized the movement didn’t work as expected when there was a bunch of characters moving at the same time, cause they would keep getting stuck on each other, as you can see below.
So yeah! Like I said I’m still pretty new to coding, and I’ll probably have trouble understanding your responses, but even if I don’t understand, I’ll still be able to come back to this post when I have more coding knowledge. Thanks for the help!
Good job having a clear idea what you wanna make. If you don’t have the coding know how your best bet is probably buying a template off of the unity asset store and filing it with your own sprites and levels to make it your own.
I’m not really familiar with the game you’re taking about but would this work:
If not, I’d suggest that you go to the unity asset store and search for templates. I’m sure someones already make a coded version of that game that you can make your own.
That makes sense! I’m definitely gonna have to get better at coding before I can pull that off though. Thanks for the idea!
Would this method work for those weird collisions I drew out?
That has the basic movement idea down, but doesn’t have any other moving objects to collide with. It might be a good start though! But I also don’t wanna pay for it, lol.
Just for fun, here’s a simple level I just designed. Can you solve it?? No weird collisions in this level.
The circle with eyes is your player character and can move in all 4 directions. The black and yellow circle is the finish. The oval can only move left and right, and the other blue circle can also move in all 4 directions. And no the walls are not turds, they’re branches/logs/trees or something.
That makes sense, if that doesn’t work you can also look for tutorials about making that type of game on youtube. If you don’t already have experience it’s probably worth buying a template if it’s available even if you have to get a job or work longer hours since you’ll spend more time coding it yourself than it would take you to make the money. I totally get not wanting to pay for that tho, everything expensive these days.
Is it Up, Right, Down, Left, Down, Right, Move the right oval right two squares, Up, Left, Up, Left, Down, Right, Up, Move right oval left two squares, right, down?
Wow, you sure pick an obscure game. I can’t find any tutorials for how make make a game like it anywhere. I can see now how the game template I linked wouldn’t work for this so continue with what you’re doing. Sorry if I wasn’t much help.
Nope! Remember, all characters/objects move at the same time and keep going until they run into a wall or each other. So you can’t move the oval just two squares, it has to keep moving until it hits something. Like this!
In addition to what I listed above, I think you’d need to sort who gets moved first each frame, once you start it all moving.
For instance, if you had A and B both coming into a square, order could be very important.
Might be “always move player last” or it might have to be more complicated, such as each type of enemy in a specific order begins their move, so you can predict how any combination would come out.