Sign in to follow this  
Phyron

Show path

Recommended Posts

Hi!

 

I need show the way the ball will follow, like peggle game:

 

Image of peggle:

 

http://static1.gamespot.com/uploads/original/1535/15354745/2640600-5244429411-23989.png

 

I have thought about creating a invisible sprite (1px), and shot this sprite every update, and create sprite of track each position.

 

But I think it is a bad solution :)

 

Any idea?

 

Share this post


Link to post
Share on other sites

Hi,

 

I was wondering about the same thing!

The example "simulates" the scene and the physics with a simple formula it can calculate to get a handful of future positions, and draws them on a bitmap.

So I guess the "draw future positions on a bitmap" part can be relevant in general, but is there maybe support for running a clone of the physics "world" for half a second (virtual time) to see what would have happened?

Share this post


Link to post
Share on other sites

Hi,

 

I was wondering about the same thing!

The example "simulates" the scene and the physics with a simple formula it can calculate to get a handful of future positions, and draws them on a bitmap.

So I guess the "draw future positions on a bitmap" part can be relevant in general, but is there maybe support for running a clone of the physics "world" for half a second (virtual time) to see what would have happened?

 

That's pretty hard to do. It is certainly possible, but I wouldn't advise it.

 

Physics are usually non-deterministic, meaning that two identical runs might not have the same output (the frame time is variable, for instance).

Share this post


Link to post
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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.