Jump to content

Can't substitute graphic images.


Uhfgood
 Share

Recommended Posts

I'm working on an asteroids game, but first I just took the ship movement code from GameMechanicExplorer.com and then modified it to use multiple files.  It works, except now I'm trying to substitute a different image instead of the "ship" image that's in there.  Only problem is, when I reload the game, the new image does not show up.

 

I have some code from pastebin that you can look at -- i mean it's really that simple.

 

http://pastebin.com/FdG5J2zz

 

Let me know if you can tell what the problem is -- if not then I don't know then.

 

Thanks!

Link to comment
Share on other sites

I can't see anything obvious - your layout is somewhat odd as it made me think perhaps you'd tried to add state-like functionality to your Player object by adding preload, create etc, but then I noticed you were calling those functions from the correct places in your state code. I don't see how that would cause this specific problem. Very puzzling indeed! Could you maybe upload this game so we can see it actually running?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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