|
0 registered members (),
677
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
how do i add this code to my script?
#312644
02/25/10 19:11
02/25/10 19:11
|
Joined: Feb 2010
Posts: 457 Norfolk,England
mikaldinho
OP
Senior Member
|
OP
Senior Member
Joined: Feb 2010
Posts: 457
Norfolk,England
|
in my main script i want to place a script that changes the level when the main character collides into a certain block (like running into a time portal) i know it is a template i downloaded,but here is the code i want to add:
//This is a product of Joey Bee Productions. Please include in credits.
bmap loading_lv = <blank.bmp>; //Loading screen
panel loadingscreen {
bmap = loading_lv; //loading screen name
flags = refresh,d3d;
}
function load_level()
{
loadingscreen.pos_x = (screen_size.x - bmap_width(loading_lv))/2; //centers loading screen
loadingscreen.pos_y = (screen_size.y - bmap_height(loading_lv))/2;
loadingscreen.visible = on; //displays loading screen
wait(3);
wait(-2);
loadingscreen.visible = off; //clears screen
bmap_purge(loading_lv);
LOAD_LEVEL <-->levelname<-->; //level name
}}
ACTION levelchange //*assign this to a map entity blocking the way out of the level*/!!!!
{
MY.INVISIBLE = ON; //makes entitie invisible
MY.ENABLE_IMPACT = ON; //enables player impact
MY.EVENT = load_level; //function name
}
if you could tell me how to include this into my main script i would be thankful. regards, michael
Last edited by mikaldinho; 02/26/10 17:46.
|
|
|
Re: how do i add this code to my script?
[Re: mikaldinho]
#312663
02/25/10 20:05
02/25/10 20:05
|
Joined: Apr 2005
Posts: 2,332 Germany, BaWü
aztec
Expert
|
Expert
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
|
wheres the problem? just put this code into your current script or use the "include" command <- didnt script for long so I dont know how it actually works just look it up in the dictionary. Second thing you do is go to WED give the time-portal the action " levelchange" take you player and move it into the portal. Just modify the script the way you want it regards Aztec
Visit: schwenkschuster-design.de
|
|
|
Re: how do i add this code to my script?
[Re: mikaldinho]
#312874
02/26/10 17:17
02/26/10 17:17
|
Joined: Apr 2005
Posts: 3,076 Germany, NRW
rvL_eXile
3D Artist
|
3D Artist
Joined: Apr 2005
Posts: 3,076
Germany, NRW
|
Sleep(2); is old syntax, please use wait(-2); for this!
cYa Sebastian
Tutorials: [Blender]Terrain creation ENG/GER [Blender]Low Poly Tree Modeling [GIMP]Create a Texture for Terrains CLICK HERE
|
|
|
|
|
|