Nicknack
12-23-2006, 05:24 PM
i tried to insert the function setspritedirection in in scroll.ppl to have sth. like jumping :)
the code looks like this:
...
if (KeysPressed$[keys.vkRight$])
SetOriginX(OriginX + ScrollSpeed$);
DelSpriteOption(mario$, SO_MIRRORX);
SetSpriteFrames(mario$, 1, 3, -1, false);
end;
if (KeysPressed$[keys.vkUp$])
SetSpriteDirection(mario$ ,90 ,1);
end;
...
if i compile it now i get this error:
error: (c:\programme\ppl\demos\scroll.ppl) [Syntax error at 'SETSPRITEDIRECTION' (58,9)]
error: (c:\programme\ppl\demos\scroll.ppl) [: or , expected at ';' (58,42)]
i don't know if it has a meaning that setspritedirection isn't written in bold type. maybe it isn't seen as a function for any reason.
the same error appears also if i use setspritevelocity or some other functions (don't know which exactly).
there are no differnces between pc and ppc.
so enlighten me i stick in the mud. x)
the code looks like this:
...
if (KeysPressed$[keys.vkRight$])
SetOriginX(OriginX + ScrollSpeed$);
DelSpriteOption(mario$, SO_MIRRORX);
SetSpriteFrames(mario$, 1, 3, -1, false);
end;
if (KeysPressed$[keys.vkUp$])
SetSpriteDirection(mario$ ,90 ,1);
end;
...
if i compile it now i get this error:
error: (c:\programme\ppl\demos\scroll.ppl) [Syntax error at 'SETSPRITEDIRECTION' (58,9)]
error: (c:\programme\ppl\demos\scroll.ppl) [: or , expected at ';' (58,42)]
i don't know if it has a meaning that setspritedirection isn't written in bold type. maybe it isn't seen as a function for any reason.
the same error appears also if i use setspritevelocity or some other functions (don't know which exactly).
there are no differnces between pc and ppc.
so enlighten me i stick in the mud. x)