PDA

View Full Version : virtual game coding


Nicknack
08-16-2009, 08:02 PM
I have encountered two problems clicking the basics of a game together:
1. how can I make sprites visible in design mode?
2. when I do the following steps...
- add a pmusic object
- create a oncreate event for the gameform
- drag&drop pmusic on the event and choose play
...I get following error report:
error: (%filename%) [Class "PMYAPPLICATION" not found at 'PMYAPPLICATION' (48,22)]
error: (%filename%) [Class "PGAMEUI" not found at 'PGAMEUI' (62,15)]
error: (%filename%) [Class "PGAMEMAP" not found at 'PGAMEMAP' (66,16)]

kornalius
08-24-2009, 04:32 PM
Hi,

Took a while sorry. I have fixed the problem.

To add sprites to a MAP, you place a PSprite object on the PGMap object. You can assign a surface to it by placing a PSurface in the Surfaces folder. The select the new sprite you've created and assign its Surface property to point to the new surface created.

Nicknack
09-19-2009, 03:05 PM
after a little delay: I still don't see my sprites in the virtual designer :( I can add them to the MAP and chance their surface (which is correctly shown when running), but I don't see them in this preview when you double click mygameform. directly adding sprites to the virtual preview is also not possible (mouse pointer changes to a stop sign) as you do in your tutorials.
btw how to you call this preview window, is it the virtual designer?