106
Technical forum / Re: TODO list online
« on: April 04, 2005, 08:27:24 PM »
Hi,
hopefully the bullet missed you ...
I tried, but without success. It doesn't matter what number I give the Scene.ScrollSpeedX command, the speed is always the same.
Thanks
Mac
hopefully the bullet missed you ...
I tried, but without success. It doesn't matter what number I give the Scene.ScrollSpeedX command, the speed is always the same.
Code: [Select]
#include "scripts\base.inc"
// here comes the stuff which initializes the scene
var EntZahnp=Scene.GetNode("Zahnsachen_Sprite");
var EntZahnpr=Scene.GetNode("Zahnsachen");
actor.SkipTo(2000, 680);
actor.Direction = DI_LEFT;
Scene.SkipTo(actor);
Scene.ScrollSpeedX=2;
actor.Active = true;
if(Game.IsItemTaken("Zahnbürste")==true) {
EntZahnp.SetSprite("scenes\Apfelhaus\Zahnb_weg.sprite");
EntZahnpr.Active=false;
}
////////////////////////////////////////////////////////////////////////////////
// scene state
global StateApfelhaus;
// default values
if(StateApfelhaus==null)
{
StateApfelhaus.Visited = false;
// add scene states here
}
////////////////////////////////////////////////////////////////////////////////
// setup scene according to state variables
////////////////////////////////////////////////////////////////////////////////
if(!StateApfelhaus.Visited)
{
StateApfelhaus.Visited = true;
// this is our first visit in this scene...
}
Thanks
Mac