Create flashlite 1.1 platform game for nokia device, will help you on your way to creating your own platform game in flashlite 1.1 for Nokia devices.
Use your arrow key in mobile to move the character around the canvas and also enter in next stage or previous stage.
Check your Nokia device screen width, because this code is for Nokia 176X208.
You can also create long platform for your game.
on (keyPress "<Left>") {
tellTarget ("/char") {
_x -= 16;
if (_x<16) {
if (getProperty("/bg", _x)<0) {
tellTarget ("/bg") {
_x += 160;
}
_x += 160;
} else {
_x = 0;
}
}
}
}
on (keyPress "<Right>") {
tellTarget ("/char") {
_x += 16;
if (_x>160) {
if (getProperty("/bg", _x)>-640) {
tellTarget ("/bg") {
_x -= 160;
}
_x -= 160;
} else {
_x = 160;
}
}
}
}
This is not a fully functioning game code.
Narender Raul
narender_raul@hotmail.com



