karicus Wrote:Yes same language as the downloadable files from the form of LoK. Adobe Flash CS5. Right now im trying to work out how it handles variables and strings. The example is; im trying to store a variable / string for Krystal's location, such as her hut, the bar, woods, whatever then on the map, a movie clip does a check of that variable and displays either her icon (as in she is at that location) or pawprints (she can travel to that location) or blank (she cant get there yet). However, I cant seem to figure out how to store this variable. I produced a dynamic text box that displays the current value of the variable, "Local", but no matter what i do, i cant seem to change the value. Even if i do a script at the start of the map scene to manually change the variable (as a test). Im sure I will work it out, i just need a little more familiarization with the code is all.
I have noticed the possibilities within flash are huge and i could have some real fun coding and animating (maybe not drawing my own characters as my drawing skills suck! haha) so eventually, im sure, things will piece themselves together. Thanks for the offer of help, it is much appreciated. However I find it difficult to 'textualy' explain what the problem is sometimes. Ill keep watching tutorials, reading posts on this forum. Thanks again for all the positive feedback.
karicus Wrote:Yes same language as the downloadable files from the form of LoK. Adobe Flash CS5. Right now im trying to work out how it handles variables and strings. The example is; im trying to store a variable / string for Krystal's location, such as her hut, the bar, woods, whatever then on the map, a movie clip does a check of that variable and displays either her icon (as in she is at that location) or pawprints (she can travel to that location) or blank (she cant get there yet). However, I cant seem to figure out how to store this variable. I produced a dynamic text box that displays the current value of the variable, "Local", but no matter what i do, i cant seem to change the value. Even if i do a script at the start of the map scene to manually change the variable (as a test). Im sure I will work it out, i just need a little more familiarization with the code is all.
I have noticed the possibilities within flash are huge and i could have some real fun coding and animating (maybe not drawing my own characters as my drawing skills suck! haha) so eventually, im sure, things will piece themselves together. Thanks for the offer of help, it is much appreciated. However I find it difficult to 'textualy' explain what the problem is sometimes. Ill keep watching tutorials, reading posts on this forum. Thanks again for all the positive feedback.
karicus Wrote:thankyou very much, Im going to check this out, this very second So what is _root.Variable? Also, is there some wiki page for commands / protocol etc I can bookmark?
karicus Wrote:I did have another idea: Inventory. For that ill need to know how AS handles lists and to parse out a AS list and then display a certain icon for each inventory item. Something im merely considering is all. Not really sure what she is going to do with an inventory though. Maybe find dildos? *laugh* Im thinking of not making it a fighting game, after all we all want to see her have sex with these creatures not beat them off. Rush! works really well tho, very good idea. I may incorporate a small element of fighting, in certain areas but im not sure of the context. Truth be told I'm still very much hunting for ideas to go into my game. Id like it to be funny, sexy, have a bit of a story and plot and some puzzles or quests. Kind of like those very old dungeon games: "Your in a dungeon, there is a door to the right and a small cucumber to the left. do you..a.use the door.. b.." you get the idea. haha.
karicus Wrote:thankyou, that does explain a great deal. So _root. is what is on the stage at that time. Any variables NOT defined on the stage at that time can not be called upon as _root. and even then I would have to define the location of the _root.variable? Such as char (in your example)? Any variable travelling over multiple frames is _global.? Im understanding it better now thankyou. I had to make my buttons as separate movie clips: Ie each button is a movie clip and the button is within the movie clip. Therefore, I can use the same movie clip over and over and they change image depending on Krystal's distance to the location (ie, Her face if she is there, paw prints if she is close enough to travel to and blank if she is too far away), then within each frame of the movie clip, the buttons lay. Click the button she she will either go back to the same location or move to the next one. Dont know if thats explaining it well enough but it works so Im well pleased thanks for the help.
I did have another idea: Inventory. For that ill need to know how AS handles lists and to parse out a AS list and then display a certain icon for each inventory item. Something im merely considering is all. Not really sure what she is going to do with an inventory though. Maybe find dildos? *laugh* Im thinking of not making it a fighting game, after all we all want to see her have sex with these creatures not beat them off. Rush! works really well tho, very good idea. I may incorporate a small element of fighting, in certain areas but im not sure of the context. Truth be told I'm still very much hunting for ideas to go into my game. Id like it to be funny, sexy, have a bit of a story and plot and some puzzles or quests. Kind of like those very old dungeon games: "Your in a dungeon, there is a door to the right and a small cucumber to the left. do you..a.use the door.. b.." you get the idea. haha.
_root.number2 = 5; //we're assuming this is inside a movieclip. If this code was on any frame on the main stage, this would be the same as having "number2 = 5;"
_global.number1 = 10; //no matter where you have this, having "number1" anywhere is now the same as having "_global.number1"
number1 = 1; // the value of _global.number1 is now 1
number2 = _global.number1; // the value of number2 is 1, while the value of _root.number2 is still 5
number2 = _root.number2; // the value of number2 is now 5, same as _root.number2
_root.number2 = number1; // the value of _root.number2 is now 1
_root.number2 = number2; // the value of _root.number2 is back to 5 again
karicus Wrote:ok quick add.. odd thing:
I am making a dynamtic text box to check the reputation and a button to add 5 to the reputation every click. Just to see if it goes up and to check the math. Ok so i click the button, the counter goes up. That is, numbers such as 2,3,6,8 etc dont show up so 10 is "10", 11 is "11" but 12 is "1" and 125 is "15" i have no idea whats happening here. its all very strange, any advice would be great.
Users browsing this forum: No registered users