problem with offset or something else idk help please?
Posted: Mon Sep 09, 2019 3:37 am
Hi guys
This is my first game ever, my friend and I did it in a gamejam a year ago and I decided to finish since we couldn't make it work. My friend did most of the code, but now I'm making it. The goal is to make Peter (the fish) collect starfish. When Peter is in the same position of the starfish, you get a point and the starfish moves to a random location
After trying for so long to make that happen, I manage to get the starfish to move when Peter touches it by changing some values in his offset, however, now Peter can't get to the corner of the screen.
If I put the offset of Peter back to the values my friend set, the starfish will only move if Peter doesn't actually touch it.
Here's how the game is now. Any tips, please?
This is my first game ever, my friend and I did it in a gamejam a year ago and I decided to finish since we couldn't make it work. My friend did most of the code, but now I'm making it. The goal is to make Peter (the fish) collect starfish. When Peter is in the same position of the starfish, you get a point and the starfish moves to a random location
After trying for so long to make that happen, I manage to get the starfish to move when Peter touches it by changing some values in his offset, however, now Peter can't get to the corner of the screen.
If I put the offset of Peter back to the values my friend set, the starfish will only move if Peter doesn't actually touch it.
Here's how the game is now. Any tips, please?