PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Updating old code to latest pre-release

I'm trying to update my old tile-based engine code to the latesst release of PPL, and am running into two very specific problems, and can not find changes in the changelog that show these differences.

First, the following code doesn't seem to work, SpriteMoved seems to be no more:

Code:

if ((SpriteMovedY(mario$) == 0.00) and (jump$ == 1))
SetSpriteFrames(mario$, 1, 3);
jump$ = 0;
end;


Second, how do i set a resolution and stop it from going fullscreen? I tried:

g_init (h$, &GameProc;, 240, 320, ORIENTATION_NORTH, 5, 60, False);

in lieu of the current code:

InitGameAPI(h$, &GameProc;, 5, 60);

and I just get access violations, stack to small errors, and then a crash. Any ideas?

(Also, if you're still around on MSN, give me a message, have a few other small questions about a potential idea I have.)
Is this for the PC or PPC? It is supposed to run in fullscreen on the PPC because of coding in PocketHAL/FROG. It doesn't support anything else.
However, PPL uses:

InitGameAPIEx(h$, &GameProc;, 240, 320, true, 20, 0);

the fifth parameter is for fullscreen. However, it shouldn't matter on the PC. It won't go fullscreen. You can, however, set the resolution to other resolutions and it will work.
the 6th is AI speed and the 7th is a limiter on the FPS
Got kornalius to help me with this, thanks anyway! :)
Sponge,

I hate your signiture Avatar dancing men!!! I wasted 7 minutes just staring hypnotically at it :-) I honestly had to snap myself out of a trance to go on with my day.

Anyway, what was the final result of your findings?
I'm not sure, he just sent me back code that works :P

It was mostly just some commands that have been removed, and other small changes.