wallinator Posted October 10, 2017 Share Posted October 10, 2017 I have been working alot of hours on a menu based mini-rpg and I have been using a normal "setInterval" JS function for my battle loop. Now when I need to add sprite timed movement to the game inside of that loop I think I need / want to use phaser update instead. The issue is I do not really understand it (or Phasers modules themselves) in a really good way and don't know what to do. I have searched for someone that can help out with anything in Phaser for about 2 years without success. Thank you for any help. Link to comment Share on other sites More sharing options...
samid737 Posted October 10, 2017 Share Posted October 10, 2017 You can use time events to do the exact same thing in Phaser. This example demonstrates how you can put code in update in order to move your sprites. 2 years is torture.... You will find plenty of answers here and I highly recommend going trough the examples. Link to comment Share on other sites More sharing options...
wallinator Posted October 11, 2017 Author Share Posted October 11, 2017 Thank you Samid. My problem is I do not know in which of my files I must have the different phaser functions. Right now I do not have any of the Phaser functions inside the file I am changning. I have searched and read countless examples, but I have no idea how to go about thinking generally about phaser and it's functions. I am using alot of sprites and the easy, intuitive stuff already of course. But when it comes to where and when and why regarding different functions like update, I don't know when to include it, when not to etc.. Link to comment Share on other sites More sharing options...
Recommended Posts