• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Camera movement.

Status
Not open for further replies.
D

Dylaniza

Guest
I posted about this before but does any one know why this may not work. I want it to move the camera to the next part like in Zelda. I Put this code in a Step function. This is my code.
  1. target_xview = (Player.x div 1000) * 1000;
  2. target_yview = (Player.y div 560) * 560;
  3. view_xview[0] = target_xview;
  4. view_yview[0] = target_yview;
I got this from a tutorial on youtube but edited it to fit my camera. People say it works on GM and GM2 but I can't get it to work on GM2.
 
Status
Not open for further replies.
Top