Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Show path


Phyron
 Share

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?

 

Link to comment
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?

Link to comment
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).

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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