Page 2 of 2
Re: My first dungeon.
Posted: Sun Nov 25, 2012 3:39 pm
by montagneyaya
your setTeleportTarget is strange
:setTeleportTarget(level,x,y,facing)
level 10 in the coordinate 24,2 and facing 6 ?
facing must be 0, 1, 2 or 3 (north, east, south or west).
Re: My first dungeon.
Posted: Sun Nov 25, 2012 6:56 pm
by Pandafox
montagneyaya wrote:your setTeleportTarget is strange
:setTeleportTarget(level,x,y,facing)
level 10 in the coordinate 24,2 and facing 6 ?
facing must be 0, 1, 2 or 3 (north, east, south or west).
I think you gave to me the solution !
I made a mistake in the order ! thanks a lot !

Re: My first dungeon.
Posted: Sun Nov 25, 2012 9:35 pm
by Komag
I guess it may not matter in this case, but it's also always a good idea to not use the same name in different situations, such as the variable named temporaryteleporter and the name of the spawned teleporter being "temporaryteleporter". This is especially important when working with functions.
Re: My first dungeon.
Posted: Wed Nov 28, 2012 6:43 pm
by Pandafox
Thanks for your help !
My dungeon is now finished but I need to ask a last question...
Maybe it is a stupid question.... but...
How to make the end ??
Nothing happend when I kill the cube (the last monster of my dungeon), what have I to do ?
Re: My first dungeon.
Posted: Wed Nov 28, 2012 7:26 pm
by Skuggasveinn
you need to call completeGame
Code: Select all
function theend()
completeGame("mod_assets/cinematics/ending.lua")
end
When the function theend gets called, it will end the game and play the ending.lua in the cinematics folder
There you can have pictures and text like with the intro.
also take a look at msyblade's thread about proper endgame credits.
viewtopic.php?f=14&t=4365&p=44848&hilit=credits#p44645
Skuggasveinn.
Re: My first dungeon.
Posted: Wed Nov 28, 2012 8:02 pm
by Pandafox
ok ! thanks !
PS : yeah !! your avatar is a Atari ST 16 colors pictures from a demo by TLB ! rulez !!