MODULE: SimpleSnow v1.10

Started by SSH, Fri 16/12/2005 15:28:44

Previous topic - Next topic

R4L

Hey SSH, I have one question. Im using this in 2.72 and it doesn't seem to compile right. Here is the problem:

line 8:  int l=GetGameParameter(GP_NUMLOOPS, VIEW12, 0, 0)-1;

GetGameParameter is obsolete, so how would I change this for 2.72?

monkey0506

#21
Method 1: Update
Code: ags
int l = Game.GetLoopCountForView(VIEW12) - 1;


Method 2: Module
Install the BackwardsCompatible module.

Step 2 (both methods):
RTFM! ;)

R4L

#22
Thanks Monkey! I read the manual but I didn't wanna mess with the code too much and not have any of it work. I'll try method one and come back with the results.

EDIT: Solevd that problem, but now there is another:

int s=GetGameParameter(GP_FRAMEIMAGE, view, tl, 0);

I looked in the manual, but I still don't get the extra parameters inside the parentheses. can I have another gift for Christmas?  ;D

monkey0506

#23
It would probably be safer to just install SSH's BackwardsCompatible module because that contains a version of GetGameParameter to sort out all the issues with it not existing in 2.72+...but....

Code: ags
ViewFrame* frame = Game.GetViewFrame(view, tl, 0);
int s = frame.Graphic;


Merry Christmas! :P

[EDIT:]

Lol at txt-style spelling. pwnt!

R4L


SSH

I've uploaded a new version that works better with newer AGSes and higher resolutions, etc.
12

SMF spam blocked by CleanTalk