xbs1993 Posted March 22, 2014 Share Posted March 22, 2014 Hey, So this is my first post and also my first game using Phaser, so cheers! I would post the code here, but since I split up my code into prototype files and I don't know where the error could be occurring, I'll just put up the github:https://github.com/NighNightGaming/unholy_ghosts The problem:Despite the fact that I explicitly spawn the player sprite at a certain point, it loads up to that point then instantly "snaps" to the enemy sprite, which spawns at a random x (within a range). I've been playing with it for a little bit now and can't really wrap my head around my error. Please and thank you for your help. Link to comment Share on other sites More sharing options...
JP91 Posted March 23, 2014 Share Posted March 23, 2014 maybe randonm(x,y)+object.x Link to comment Share on other sites More sharing options...
Recommended Posts