Pages (2): « First [1] 2 » Last » Post Reply  Post Thread 

Gaming Tutorial (how to walk)
Author Message
Ghettobird
Zupar Modaratar


Posts: 99
Group: Super Moderators
Joined: Jun 2006
Status: Offline
Reputation:
Post: #1
Gaming Tutorial (how to walk)

heya ^_^ had nothing to do so i'll post a game tutorial


how to walk?

its very easy:

draw a character u want to have (for beginners start with a dot or something)

now "convert it to a movieclip"

this is: selecting the whole graphic u just drawn and rightClick->convert to symbol

now select movieclip

after that again right click and now press "actions"

now you'll see a screen all white

in the screen put: (for birdeye graphics only! else remove all the _rotation things)

Code:

onClipEvent(load){
speed = 8;
}
onClipEvent(enterFrame){
if (Key.isDown(Key.UP)){
this._y -= speed;
_rotation = 0;
}
if (Key.isDown(Key.DOWN)){
this._y += speed;
_rotation = 180;
}
if (Key.isDown(Key.LEFT)){
this._x -= speed;
_rotation = 270;
}
if (Key.isDown(Key.RIGHT)){
this._x += speed;
_rotation = 90;
}
}



as u can see the
Code:
if (Key.isDown(Key.UP)){



is for which key u want for the following option:
Code:
this._y += speed;



this means y (vertical) - (up) speed(is 8)

so what it does when press the up arrow key it walks vertically up with speed 8

Code:
_rotation = 0;



this is which way the char turns to with the key up it has to face up so that will be 0

downwards is 180

thats half of a round (full round is 360)



well i hope this helps Smile

have fun!


(Credits to Rochy And Flash 8)





I R HAve The Proof I R 100 Post =D U Go Look!:
http://img234.imageshack.us/img234/2775/yeah0yn.jpg

This post was last modified: 06-20-2006 04:57 AM by Ghettobird.

06-20-2006 03:46 AM
Send the author an email Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply
DarkstaR
Super N00derator


Posts: 105
Group: Super Moderators
Joined: Jun 2006
Status: Offline
Reputation:
Post: #2
RE: Gaming Tutorial (how to walk)

Nice tut Roch ;D, but i dont wanna dl Flash 8 just to test it =\

06-20-2006 04:02 AM
Send the author an email Send the author a private message Find all posts by this author Quote this message in a reply
Ghettobird
Zupar Modaratar


Posts: 99
Group: Super Moderators
Joined: Jun 2006
Status: Offline
Reputation:
Post: #3
RE: Gaming Tutorial (how to walk)

thnx :)

its also compatible with Flash mx and Flash 2004



I R HAve The Proof I R 100 Post =D U Go Look!:
http://img234.imageshack.us/img234/2775/yeah0yn.jpg
06-20-2006 04:36 AM
Send the author an email Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply
Hexo
n00d
**


Posts: 37
Group: Member
Joined: Jun 2006
Status: Offline
Reputation:
Post: #4
RE: Gaming Tutorial (how to walk)

Nice, just one problem.. when I press right it goes up :o


06-20-2006 04:51 AM
Send the author an email Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply
Ghettobird
Zupar Modaratar


Posts: 99
Group: Super Moderators
Joined: Jun 2006
Status: Offline
Reputation:
Post: #5
RE: Gaming Tutorial (how to walk)

oh whoops forgot to change the y in x srry :$ (fixed now) thnx hexo thats the 2nd time u helped me :p



I R HAve The Proof I R 100 Post =D U Go Look!:
http://img234.imageshack.us/img234/2775/yeah0yn.jpg
06-20-2006 04:56 AM
Send the author an email Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply
Hexo
n00d
**


Posts: 37
Group: Member
Joined: Jun 2006
Status: Offline
Reputation:
Post: #6
RE: Gaming Tutorial (how to walk)

No problem.. now it works fine ;) (Goes looking for other tutorials)


06-20-2006 04:59 AM
Send the author an email Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply
Ghettobird
Zupar Modaratar


Posts: 99
Group: Super Moderators
Joined: Jun 2006
Status: Offline
Reputation:
Post: #7
RE: Gaming Tutorial (how to walk)

hihi oki :)

im making a few :)



I R HAve The Proof I R 100 Post =D U Go Look!:
http://img234.imageshack.us/img234/2775/yeah0yn.jpg
06-20-2006 05:01 AM
Send the author an email Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply
DarkstaR
Super N00derator


Posts: 105
Group: Super Moderators
Joined: Jun 2006
Status: Offline
Reputation:
Post: #8
RE: Gaming Tutorial (how to walk)

Erm, this maybe is a n00d question, but does these tuts wrok with Flash MX? 0=)


06-23-2006 05:32 PM
Send the author an email Send the author a private message Find all posts by this author Quote this message in a reply
Ghettobird
Zupar Modaratar


Posts: 99
Group: Super Moderators
Joined: Jun 2006
Status: Offline
Reputation:
Post: #9
RE: Gaming Tutorial (how to walk)

Yes, Since this has nothing to do with AS2(actionScripting2)

This will be Able on:
-Flash 8
-Flash mx 2005
-Flash mx 2004
-flash mx(7)
-flash 6
-flash 5



I R HAve The Proof I R 100 Post =D U Go Look!:
http://img234.imageshack.us/img234/2775/yeah0yn.jpg
06-23-2006 06:54 PM
Send the author an email Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply
DarkstaR
Super N00derator


Posts: 105
Group: Super Moderators
Joined: Jun 2006
Status: Offline
Reputation:
Post: #10
RE: Gaming Tutorial (how to walk)

yay, then im gonna try it out soon =D


06-23-2006 07:02 PM
Send the author an email Send the author a private message Find all posts by this author Quote this message in a reply
Pages (2): « First [1] 2 » Last »

Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:

Forum Jump: