Jump to content

Click and draw platform ... Any idea ?


Limbe
 Share

Recommended Posts

Hi everyone,

 

I am currently creating my first Phaser game, and i have to admit it's a pretty cool framework!

However I do need your help.

 

What I want to do: a kind of a Line Rider game, where the player can draw a path (a line) on which a sprite could collide.

 

What I did: When the pointer is down, a bitmap data rectangle is add to the game, and I use its name to create a sprite. I can draw a line of tiny rectangles (4*4 pixels) and my player can jump on them. 

 

I do have two main problem:

- First, when too many sprites are created, the game freezes really bad :D

- And my player sprite is not sliding on the path i created, even though it’s submitted to gravity.

 

I found a great API which would have allowed me to do that: Box2D. Unfortunately I can't pay 50$ for this project :-/

 

I think I may be on the wrong way: do you have any suggestions on how I could implement this?

 

 

Thanks a lot,

 

Limbe

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...