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:44 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.



 [ 9 posts ] 
[Request] Side scrolling help 
Author Message
User avatar

Joined: Mon Aug 11, 2008 12:17 pm
Posts: 95
Here's what i have so far. What I want to do is make it so that the symbol changes when he runs so that he doesn't just look the same the whole time. I also want him to face the direction he's going. Any suggestions?
http://stoatandpals.com/NEWMOVIE.swf


Sun Sep 28, 2008 6:45 pm
User avatar

Joined: Mon Aug 11, 2008 6:56 am
Posts: 469
Location: not so superhappy fun fun land....
StoatTamer wrote:
Here's what i have so far. What I want to do is make it so that the symbol changes when he runs so that he doesn't just look the same the whole time. I also want him to face the direction he's going. Any suggestions?
http://stoatandpals.com/NEWMOVIE.swf

ok here's how I would make him cange sides:
Code:
onClipEvent (load) {
scale = _xscale
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)){
-scale
if (Key.isDown(Key.RIGHT)){
scale
}
}

If i did something wrong, please tell me.

_________________
Image

ashante08 wrote:
We argue, we try to understand each of our problems, we argue some more, rinse and repeat


Sun Sep 28, 2008 9:13 pm
User avatar

Joined: Tue Aug 12, 2008 3:04 pm
Posts: 94
Location: Planet Hocotate with my Wife and Kids.
U do.

_________________
Image


Tue Sep 30, 2008 7:59 pm
User avatar

Joined: Mon Aug 11, 2008 6:56 am
Posts: 469
Location: not so superhappy fun fun land....
Olimar Dude wrote:
U do.

?

_________________
Image

ashante08 wrote:
We argue, we try to understand each of our problems, we argue some more, rinse and repeat


Tue Sep 30, 2008 8:01 pm
User avatar

Joined: Tue Aug 12, 2008 3:04 pm
Posts: 94
Location: Planet Hocotate with my Wife and Kids.
U do Rock.

_________________
Image


Tue Sep 30, 2008 11:19 pm
User avatar

Joined: Mon Aug 11, 2008 6:56 am
Posts: 469
Location: not so superhappy fun fun land....
ok?
back on topic, i'm looking for the other answer, stoat.

_________________
Image

ashante08 wrote:
We argue, we try to understand each of our problems, we argue some more, rinse and repeat


Wed Oct 01, 2008 6:00 pm
User avatar

Joined: Tue Aug 12, 2008 10:07 am
Posts: 24
Location: ohio
Gender: Male
Quote:
ok here's how I would make him cange sides:
Code:
onClipEvent (load) {
scale = _xscale
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)){
-scale
if (Key.isDown(Key.RIGHT)){
scale
}
}


ok, can you tell us what we will need to change for our games when we do it?


Sat Nov 15, 2008 8:42 pm
User avatar

Joined: Mon Aug 11, 2008 6:56 am
Posts: 469
Location: not so superhappy fun fun land....
Fojam wrote:
Quote:
ok here's how I would make him cange sides:
Code:
onClipEvent (load) {
scale = _xscale
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)){
-scale
if (Key.isDown(Key.RIGHT)){
scale
}
}


ok, can you tell us what we will need to change for our games when we do it?

sorry, forgot to say that
add this to your actionscript of you character, such as:
Code:
onClipEvent (load){
other code you have here
scale = _xscale
}
OnClipEvent (enterFrame){
if (Key.isDown(Key.LEFT)){
other code you have to make him move left
-scale
if (Key.isDown(Key.RIGHT)){
other code you have to make him move right
scale
}
all other code you have for him (such as jumping) here
}

better?

_________________
Image

ashante08 wrote:
We argue, we try to understand each of our problems, we argue some more, rinse and repeat


Sun Nov 23, 2008 5:39 pm
User avatar

Joined: Tue Aug 12, 2008 10:07 am
Posts: 24
Location: ohio
Gender: Male
yes, thank you.


Mon Nov 24, 2008 6:06 pm
Display posts from previous:  Sort by  
 [ 9 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.