Jump to content

Moving a sprite


Bandini
 Share

Recommended Posts

Hello.

First i apology if my english is hard to understand i'm french.

I'm doing some experimentation with BabylonJS. Trying to developp some functionnality for creating a game down the road. Perhaps developping a library for handling 2D sprite for adventure/strategic game if it can be of interest for some people.

But i have a small problem. I just want my sprite to move from A to B. It's working fine but the scene only render wen my sprite has been to B, not displaying the traveling in itself. If i'm not clear, i want to be able to see that my characters is walking from A to B. This is what i did.

http://www.babylonjs-playground.com/#1WGIY5#0

I try with doing scene.render() or scene.clear() after the incrementation of the player position. But it doesn't seem to work. Has someone got and idea? (for now the click only work when we click on the right of the character)

(or should i use ActionManager?)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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