drunkenoodle

Curious how to add sloping tiles using Phaser.js Arcade Physics

Recommended Posts

Hello everyone,

I've been looking in to how one might create sloping tiles in Phaser.js and its Arcade physics engine. From what I've done so far, I just basically have two squares moving through the middle of an existing square as an experiment to see if my 'limited' knowledge of maths actually works (see fiddle):

http://jsfiddle.net/drunkenoodle/qLuzv06c/10/.

 

My plan was to simply move a sprite along that same trajectory while ignoring the left and right collisions of the tile...

 

So I gave it a shot and attempted to apply the method to Phaser, although had very little luck doing so. I've checked out a few articles but sadly don't 100% understand them yet, so heading back to them after posting this.

 

I just wondered if anyone else had any luck, and if you may have some pointers on how to go about it.

 

Cheers for your time guys,

-D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.