The McLeodGaming forums were permanently closed on April 30th, 2020. You are currently viewing a read-only archive.
View unanswered posts | View active topics It is currently Fri May 15, 2020 5:37 am

Forum rules


IMPORTANT

This Forum is for Flash related questions ONLY! Do not ask questions about spriting, Game Maker, Photoshop, or anything else not related to Flash.



 [ 5 posts ] 
[Question] Character Stats? 
Author Message
Site Moderator
User avatar

Joined: Fri May 22, 2009 3:44 pm
Posts: 4156
Location: saying things with posed looks
Gender: Anime Girl
Skype: Snail's Legacy
Currently Playing: umib and unib
Waifu: SNAIL
sorry i've been asking more questions lately, but if i get this answer, i wont need to come back for a VERY long time. i want to know how to make character stats like jumpspeed, attack power and stuff like that. i tried it myself but i have no idea what code to put in exactly. but, at the same time, i need to know how to do that if im using the attach movie command. i dont take mc's out the library, so does some one know a way that i can put stuff like that in a character without having to apply it directly? if so how? sorry about all the questions again every body :sweat: .

-Flashmonster

_________________
Image

Image Image Image

early 2k nostalgia mode


Fri Feb 05, 2010 9:21 pm
User avatar

Joined: Tue Oct 28, 2008 1:37 pm
Posts: 300
It's kind of hard explaining, but this may give you an idea of how to do it.

onClipEvent(load){
speed=10
//change the number ten to suit the char
}
onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT)){
this._x+=speed
//this._x+=10
}
}

_________________
Image
super smash bros blits(working title)-1% done
new flash game


Tue Feb 09, 2010 5:04 pm
Site Moderator
User avatar

Joined: Fri May 22, 2009 3:44 pm
Posts: 4156
Location: saying things with posed looks
Gender: Anime Girl
Skype: Snail's Legacy
Currently Playing: umib and unib
Waifu: SNAIL
bowser guy wrote:
It's kind of hard explaining, but this may give you an idea of how to do it.

onClipEvent(load){
speed=10
//change the number ten to suit the char
}
onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT)){
this._x+=speed
//this._x+=10
}
}




ok, i get it. so lets say i was putting mario in my flash game using a variable called player1(1st player),an attachmovie command and his speed equals 10. do you know if it would it be like this? :huh:

Code:
if(player1 = "mario"){
     _root.attachMovie("mario");
     speed = 10;


thanks, if youre not sure dont worry about it, hopefully ill find out from someone.

_________________
Image

Image Image Image

early 2k nostalgia mode


Tue Feb 09, 2010 6:52 pm
User avatar

Joined: Wed Aug 05, 2009 11:01 am
Posts: 54
Location: Edmonton, Alberta, Canada
Country: Canada (ca)
Gender: Male
Waifu: Kasukabe You
No, if you want to set Mario's speed I think it would be...
Code:
if(player1 = "mario"){
     _root.attachMovie("mario");
     _root.mario.speed = 10;

It depends, but it's better to do this.

_________________
Previously buzzer465 - I just remembered this account existed after like 4 years...
Image
Tall hat Kirby! Edited off the SSF2 Kirby.


Thu Feb 11, 2010 1:47 pm
Site Moderator
User avatar

Joined: Fri May 22, 2009 3:44 pm
Posts: 4156
Location: saying things with posed looks
Gender: Anime Girl
Skype: Snail's Legacy
Currently Playing: umib and unib
Waifu: SNAIL
buzzer465 wrote:
No, if you want to set Mario's speed I think it would be...
Code:
if(player1 = "mario"){
     _root.attachMovie("mario");
     _root.mario.speed = 10;

It depends, but it's better to do this.



thanks, but do you know how to make an attack power or jump height variable that works on the attach movie command?

_________________
Image

Image Image Image

early 2k nostalgia mode


Thu Feb 11, 2010 7:49 pm
Display posts from previous:  Sort by  
 [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.