View Full Version : next level - tutorial or examples
Nazgut
06-26-2007, 10:07 PM
Sry for my noob question, but i'm starting to use novashell and can't figured how to add next level on game (new map,camera position and new goals, spirits is that same). Can anyone give my some examples or tutorial? Thx for all answer.
Hmm, there is no tutorial yet, but basically you can just use the "Add new map" menu option.
Or, cut and paste a map directory to copy it to a new one, restart the editor and it will be available to edit.
I need to do a tutorial on warping sometime to connect levels... :o
By studying the RPG or treeworld example you can probably figure it out though.
Nazgut
06-27-2007, 10:10 AM
huh, this is not that what i have in my mind but i do it on my own way. (on dragon egg example):
In egg.lua I add:
function RemoveEggFromGlobalCount()
if (this:VariableExists("m_removedEgg")) then
//already removed it.
return;
end
_G.g_eggCount = g_eggCount - 1;
koniec(g_eggCount);
m_removedEgg = true;
end
add make init_level.lua with:
function koniec(g_eggCount)
if (g_eggCount < 1) then
if (GetEntityByName("Player")) then
local entPlayer = GetEntityByName("Player");
_G.PLAYER_ID = entPlayer:GetID();
Schedule(1000, PLAYER_ID, 'GetMapManager:UnloadMapByName("Main")');
GetMapManager:SetActiveMapByName("Level1");
end
end
end
Now i have another questions:
1. I have my next level on other position then old one, how can I set camera to player (without move them)
2. On my second level (level1) my eggs counter is bigger then number of eggs on level.
Ps Sorry for my english
Nazgut
06-27-2007, 03:17 PM
problem solved :D
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.