crysfel Posted August 15, 2014 Share Posted August 15, 2014 Hi Guys! Im really new to games, this is my first attempt of creating a game and so far I've found Phaser a great library! There's one problem that I have, I want to create moving platforms, I found this example: http://jsfiddle.net/lewster32/4yh8ee1f/ which is great, however my map is larger and I would like to move the platforms in just some space not to the limits of my map. Is there a way to set limits to the moving platform? let's say from x=100 to x=400. Thanks in advance. Link to comment Share on other sites More sharing options...
lewster32 Posted August 15, 2014 Share Posted August 15, 2014 I intended to do this before - I've extended the Sprite class to create a platform which works properly, doesn't throw the player off when it changes direction and allows you to set a min and max range from the original x/y position as well as a speed: http://jsfiddle.net/lewster32/zxcqhfzq/ Link to comment Share on other sites More sharing options...
Recommended Posts