Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Global Varibles Problem

Author
Message
kubas1129
10
Years of Service
User Offline
Joined: 15th Dec 2013
Location:
Posted: 15th Dec 2013 12:09
Hi
I have a question. I want write the skill script, but i have a problem with variables.I create the Global Variable (dimvar),value global var is deleted when I go to next level, so my skill resetting also in next level.
You can manage it?

PS. I know, that I don't speak english very well,but a still teach it, excuse me...
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 16th Dec 2013 00:06
kubas1129
Quote: "Global Variable (dimvar),value global var is deleted when I go to next level"

This exact question is answered on this thread from BlackFox...
http://forum.thegamecreators.com/?m=forum_view&t=192148&b=23
Scroll down to Using Global Variables (globalvar)- The Basics and read thru it. They need to be "reset" for each level.
best

You know you're a bad gamer when you're able to run out of infinite lives.
kubas1129
10
Years of Service
User Offline
Joined: 15th Dec 2013
Location:
Posted: 16th Dec 2013 14:56
Thanks, but I still don't understand how I load the variables from first level to other. For example :



How I can load this var in second level? I know, that I should put the script but i don't know what I have to write there?
Again thanks for the answer.
jaropolk14
12
Years of Service
User Offline
Joined: 3rd Jul 2011
Location: Russia, Rostov-on-Don
Posted: 16th Dec 2013 22:25
Try to make a trigger zone with a simple "condition-only" script. Something like this:


or this:
kubas1129
10
Years of Service
User Offline
Joined: 15th Dec 2013
Location:
Posted: 17th Dec 2013 16:08
Thank you very much, it's working

Login to post a reply

Server time is: 2024-03-29 01:37:13
Your offset time is: 2024-03-29 01:37:13