View Full Version : how to you get flash to record data such as how much money without lots of frames?
Kevin_Wolf0
07-03-2005, 10:58 PM
hello all i am thinking about making an RPG game for my site but I am not very good with scripting or drawing, but drawing comes with experience.
It would be great if anyone could tell me how to write a script or provide one that works in that way eg. like in Stick RPG *complete* how it knows when you have a car, a skateboard, a pack of smokes, how much money, the type of house you are living in.
eatmorchikin6464
07-03-2005, 11:03 PM
Nah, I'm not going to bother, sorry.
The thing is, you are not nearly experienced enough to accomplish a task like this, so I suggest you start smaller.
Kevin_Wolf0
07-03-2005, 11:08 PM
I suggest you stop putting evryone down
eatmorchikin6464
07-03-2005, 11:13 PM
o.0
I helped you out in your past few threads, plus, I'm not putting you down. I'm making a very valid suggestion. AS is harder than you think.
Kevin_Wolf0
07-03-2005, 11:39 PM
sorry
it's just you should look at my flash games they absolutely suck.
http://www.freewebs.com/kevinkingsflash/
bobmasedo
07-03-2005, 11:57 PM
Do you mean like variables?...
you can go like money += 10...
If you dont know that sort of stuff then I agree with EMC, I would kinda learn flash a bit better before you do this, I dont mean to offend or anything but it will be annoying to try learn this stuff while you make it.
sorry
it's just you should look at my flash games they absolutely suck.
http://www.freewebs.com/kevinkingsflash/
thats exactly the point EMC wanted to make, your not good at AS (yet) it takes alot of time and patience, if your willing to learn people will help.
Example 1:
I need a code for making an RPG can someone give me it plz?
that usually gets a bad response
Example 2:
Hey, I've been trying to figure it out but im having trouble with making my player stop, i tried using a hitTest but for some reason it doesnt work. Im quite new to flash but would like some help
Maybe give some code that YOU have created, if its incorrect people can help, people like correcting rather than making themselves.
any help would be appreciated, Thanks.
if i saw a post like that, i would see you have the will to learn, and that you have tried yourself.
I know this seems a bit of a pointless post, but honestly you will get a better respone from people round here like that.
Try taking some tutorials on variables
"In computer science (http://www.answers.com/main/ntquery?method=4&dsid=2222&dekey=Computer+science&gwp=8&curtab=2222_1) and mathematics (http://www.answers.com/main/ntquery?method=4&dsid=2222&dekey=Mathematics&gwp=8&curtab=2222_1), a variable is a symbol denoting a quantity (http://www.answers.com/main/ntquery?method=4&dsid=2222&dekey=Quantity&gwp=8&curtab=2222_1) or symbolic representation (http://www.answers.com/main/ntquery?method=4&dsid=2222&dekey=Symbol&gwp=8&curtab=2222_1)."
//Declare your variable, if you have a problem saying undefined, its going to
//be because you declared incorrectly
Money = 0;
// i know from your games you've used Key.isDown, and if statements
if (Key.isDown (Key.UP)){
Money += 10;
// this cannot be seen in FlashPlayer, only within flash
// it displays Money, which will be 10 more than it was
Trace (Money);
}
if (Key.isDown (Key.DOWN)){
Money -= 10;
// it displays Money, which will be 10 less than it was
Trace (Money);
}
Kevin_Wolf0
07-04-2005, 04:23 AM
you are right, and the post wasn't pointless I will learn from my mistakes.
also I probably do need to learn more about flash frist but im only 12.
and im not new to flash I know all the basics like how to set variables and buttons but Im not good at scripting I have tried tutorial sites but they arent much help to me and I dont want to wait until Im in high school and have to finish all my work as fast as i can so I can ask my web design teaching to teach me in the spare time I have cause that would be forever.
also my brother thinks he is better then me.
you are right, and the post wasn't pointless I will learn from my mistakes.
also I probably do need to learn more about flash frist but im only 12.
and im not new to flash I know all the basics like how to set variables and buttons but Im not good at scripting I have tried tutorial sites but they arent much help to me and I dont want to wait until Im in high school and have to finish all my work as fast as i can so I can ask my web design teaching to teach me in the spare time I have cause that would be forever.
also my brother thinks he is better then me.
you also need to punctuate a bit, i could read it, but it was quite difficult. Anywho, age isnt a factor , im only 16 i started at 15.
Most tutorials i find can be pointless, for my first year in flash i didnt read one, Then i started learning more difficult things and learnt how to do the basics better, like using variables better (something i never thought you could get better at)
kirupa.com has some fun tutorials, actionscript.org is more of a technical site.
Kevin_Wolf0
07-04-2005, 06:15 AM
I went to action scrpt.org
Im gonna relook through the turtorials to find out some stuff on action scripting.
I know my punctuation isn't that good but that's only because I type to fast and I don't "touch type"you know where you have your thumbs on the spacebar and you're rgiht index on the j. cause when I type like that I take forever and my writing can't be that hard to read could it?
I went to action scrpt.org
Im gonna relook through the turtorials to find out some stuff on action scripting.
I know my punctuation isn't that good but that's only because I type to fast and I don't "touch type"you know where you have your thumbs on the spacebar and you're rgiht index on the j. cause when I type like that I take forever and my writing can't be that hard to read could it?
i dont touch type either, i learnt how to but its rubbish. It's not that difficult to read, sometimes you have to read it over i.e: the part i put in bold, you should have used a full stop instead of and because its not the same point.
arkhan
07-04-2005, 10:50 AM
if you dont ponctuate..yes its anoying to read it..and you dont habve to "touch type" to type correctly and fast..just get used to it...I dont really ponctuate online..I just put those ".." to mean some stop..whatever its suposed to be, so people dont have to " guess when one sentence ends and another one starts..its also good to read after your done...just read it and try to understand it as if you didnt know..
im only 15 as well..and I only started AS when I joined xgen..yeah, I couldnt find the actions panel..so what?
Skooma
07-05-2005, 10:10 AM
Well to try and get a helpful post in here try messing around with some objects and functions. If you dont know those then it will be extremly hard to make a game.
for example you could try this for money.
//this creates a functon for makeing an object where you can hold variables and specifications of the character/object you want.
function makePerson (age, hieght, money, speed, strength, agility) {
this.age = age;
this.hieght = hieght;
this.money = money;
this.speed = speed;
this.strength = strength;
this.agility = agility;
}
//--------------------------------------------
//This makes an object called Rich with the age of 33 hiegth of 68, $2999.99 and so on.
Rich=new makePerson(33,68,2999.99,8,3,7);
//--------------------------------------------
//this will put tell you in the output how much money Rich has.
trace("Rich has "+"$"+Rich.money);
//---------------------------------------------
I suggest to go find some tutoriels on them it has been a long time since i used flash and my memory is not the best place to learn from.
I find mostly tutoriels on math in AS are better than the ones telling you to make something.Also i dont touchtype but my spelling is horid from my learning disap.
b.i.g.
03-07-2006, 05:38 PM
Read the faq and stop spamming.
STOP FLAMING FLASH NEWBS BECAUSE YOU ARE AN XGEN NEWB
SHUT UP
Gah
N00b
Mark Aged
03-07-2006, 06:24 PM
I konw b.i.g. alredy said something, but xaniz, go **** yourself
The Brown Cow
03-07-2006, 09:05 PM
//this creates a functon for makeing an object where you can hold variables and specifications of the character/object you want.
function makePerson (age, hieght, money, speed, strength, agility) {
this.age = age;
this.hieght = hieght;
this.money = money;
this.speed = speed;
this.strength = strength;
this.agility = agility;
}
//--------------------------------------------
//This makes an object called Rich with the age of 33 hiegth of 68, $2999.99 and so on.
Rich=new makePerson(33,68,2999.99,8,3,7);
//--------------------------------------------
//this will put tell you in the output how much money Rich has.
trace("Rich has "+"$"+Rich.money);
//---------------------------------------------
Someone else here has finally learned object oriented programming?! Praise lord!
If you wanted that to be really cool..
//this creates an object where you can hold specifications of the character you want.
function Person (age, height, speed, strength, agility) {
this.age = age;
this.height = height;
this.money = 0;
this.speed = speed;
this.strength = strength;
this.agility = agility;
}
Person.prototype.giveMoney = function(amount) {
this.money += amount;
}
Person.prototype.toString = function() {
return "Age:"+this.age+"\nHeight:"+this.height+"\nMoney:"+this.money+"\nSpeed:"+this.speed+"\nStength:"+this.strength+"\nAgility:"+this.agility;
}
//--------------------------------------------
//This makes an object called Rich with the age of 33 height of 68, and so on.
Rich = new Person(33, 68, 8, 3, 7);
// Give him some money
Rich.giveMoney(50);
//--------------------------------------------
//this will put tell you in the output everything about Rich.
trace(Rich);
//---------------------------------------------
Try it!
Insane Knux
03-07-2006, 10:01 PM
you are right, and the post wasn't pointless I will learn from my mistakes.
also I probably do need to learn more about flash frist but im only 12.
and im not new to flash I know all the basics like how to set variables and buttons but Im not good at scripting I have tried tutorial sites but they arent much help to me and I dont want to wait until Im in high school and have to finish all my work as fast as i can so I can ask my web design teaching to teach me in the spare time I have cause that would be forever.
also my brother thinks he is better then me.
I'm 11 turning 12 on May 3rd and I know quite a bit of AS already.
I know more than Insane Knux does :P
Insane Knux
03-07-2006, 10:22 PM
Whoop de do. I lost interest lol... That's always my problem, I get bored too fast. XD
Well, Skooma's got a big thing there, use it ;)
vBulletin® v3.7.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.