yeah some big image.but it is ok. i uploaded.
now i want to control my background image by keyboard.
i wrote these codes under the scene_init.script. but it doesnt work..
#include "scripts\base.inc"
// here comes the stuff which initializes the scene
////////////////////////////////////////////////////////////////////////////////
// scene state
global Statepanoroma;
// default values
if(Statepanoroma==null)
{
Statepanoroma.Visited = false;
// add scene states here
if (Keyboard.KeyCode == "VK_UP")
{
Scene.SkipTo(Scene.X, Scene.Y-50);
}
else if (Keyboard.KeyCode == "VK_DOWN")
{
Scene.SkipTo(Scene.X, Scene.Y+50);
}
else if (Keyboard.KeyCode == "VK_LEFT")
{
Scene.SkipTo(500, 300);//Scene.SkipTo(Scene.X-50, Scene.Y);
}
else if (Keyboard.KeyCode == "VK_RIGHT")
{
Scene.SkipTo(Scene.X+50, Scene.Y);
}
}
////////////////////////////////////////////////////////////////////////////////
// setup scene according to state variables
////////////////////////////////////////////////////////////////////////////////
if(!Statepanoroma.Visited)
{
Statepanoroma.Visited = true;
// this is our first visit in this scene...
}