Problem with making a Standalone Game with three Levels
GG 1.111
Each Level is in the mapbank I am using this lua script.
---------------------------------------------------------
local PlayerDist = 0
local AnimRun = 0
function cryo_unit_b_init(e)
CollisionOn(e);
level="ZS_Level_02"
end
function cryo_unit_b_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 280 then
SetAnimation(0);
SetAnimationSpeed(e,440);
SetAnimationFrames(0,150)
PlayAnimation(e);
PlaySound(e,0);
PromptDuration("PickUp BOOK and Pick Up the LEVEL KEY in the Market place, then back here",3000)
if book_pick_up == 1 and key_pick_up == 1 then
JumpToLevel(level)
end
end
end
-------------------------------------------------------------------------------------------------
The problem is that the Standalone folder does not include ZS_Level_02.fpm
or the third level fpm, and does not copy the entity’s for the two Levels into the
entity folder.
To beat this problem I have been placing a WinZone into level 1 and 2, then the
correct files have been copied to the Standalone Game Folder, I then go into that
folder and delete the Winzone lua code so it dosen’t fire off at all.
I would have thought that JUMPTOLEVEL would have caused the required files
to be copied correctly, maybe I don’t understand how this function works.
The Game now works fine.