hey all! i've ended up with my game mechanics in a knot and hoping someone can help me untangle them. ;v;;
i've been working on a simple game where different objects respond to the player differently when the player interacts with them. attached is the guide i made for my design doc, but i'll explain here too:
- one type of jellyfish slows the player down if they touch it
- one type of jellyfish is pushed around by the player if they move into it
- one type of jellyfish speeds the player up if they approach it/graze it in a certain radius
at the moment, player movement is directional, and speed is based on motion_add/acceleration code (screenshotted below). this works fine on its own, but i learned from tutorials that i may have to use physics - specifically for the objects pushed around by the player. i used this tutorial to attempt this, but it seems like the two things i've coded don't work together. when i turn on physics in the room, the player doesn't move, and obviously running into the jellies with no physics causes a crash.
is there some way i can adjust my directional player movement to use physics instead of a fixed speed? alternatively, if i should redo the player movement code completely, how do i move the player without them being affected by gravity? (all the platformer tutorials i can find rely on it, but my guy is swimming, so......)
also, i haven't figured the other two jellyfish types out yet either, if anyone is willing to tackle those with me as well. thank you!
In this tutorial learn how to add bouncing objects in GameMaker, use physics within the game engine, make objects bounce, use parent objects, and create re-usable functions
This tutorial is suitable for beginner game devs, you can follow along with both GameMaker languages: GML & GML visual, and all the assets you need are downloadable.
Compl...
