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



 [ 13 posts ] 
[Request] Standing in both sides code with movement? 
Author Message

Joined: Wed Nov 26, 2008 10:43 am
Posts: 16
I've been looking everywhere for a code like this.I want a code that has basic movement and jumping and falling,with standing in both sides.Ill learn from it.And edit it to my liking. :headbang:

Thanks

PS.if you can,Can you make work on instance names?


Mon Apr 06, 2009 1:06 pm
SSF2 Developer
User avatar

Joined: Mon Aug 11, 2008 2:25 pm
Posts: 968
Location: Around the East Coast of the US
Gender: Male
MGN Username: KingTremolo
Currently Playing: Super Mario 64, Monster Hunter 4, Sonic Generations
This might be spam, but I'm also having trouble making a good jump. So that it lands FLATLY on the surface.

_________________
Image


Mon Apr 06, 2009 2:08 pm

Joined: Wed Nov 26, 2008 10:43 am
Posts: 16
Bow&Strings wrote:
This might be spam, but I'm also having trouble making a good jump. So that it lands FLATLY on the surface.


Oh I see,If this is spam,Idk how it is spam.


Mon Apr 06, 2009 2:34 pm
User avatar

Joined: Mon Aug 11, 2008 1:09 pm
Posts: 166
Location: England lol
Gender: Male
Currently Playing: Minecraft
Clyde02 wrote:
I've been looking everywhere for a code like this.I want a code that has basic movement and jumping and falling,with standing in both sides.Ill learn from it.And edit it to my liking. :headbang:

Thanks

PS.if you can,Can you make work on instance names?


If you go here: http://archives.mcleodgaming.com/viewtopic.php?t=2958

You can follow a tutorial I wrote that will cover this stuff...


Mon Apr 06, 2009 6:30 pm
WWW
SSF2 Developer
User avatar

Joined: Mon Aug 11, 2008 2:25 pm
Posts: 968
Location: Around the East Coast of the US
Gender: Male
MGN Username: KingTremolo
Currently Playing: Super Mario 64, Monster Hunter 4, Sonic Generations
No, you don't get my post. I thought MY post might be spam. Sorry if I didn't make that clear.

_________________
Image


Mon Apr 06, 2009 9:39 pm

Joined: Wed Nov 26, 2008 10:43 am
Posts: 16
x2i wrote:
Clyde02 wrote:
I've been looking everywhere for a code like this.I want a code that has basic movement and jumping and falling,with standing in both sides.Ill learn from it.And edit it to my liking. :headbang:

Thanks

PS.if you can,Can you make work on instance names?


If you go here: http://archives.mcleodgaming.com/viewtopic.php?t=2958

You can follow a tutorial I wrote that will cover this stuff...


Ok that's a platformer.Doesn't answer my request though.


Tue Apr 07, 2009 5:43 pm
User avatar

Joined: Mon Aug 11, 2008 1:09 pm
Posts: 166
Location: England lol
Gender: Male
Currently Playing: Minecraft
I'm sorry, I thought you wanted a platformer game seeing as how you mentioned jumping, walking etc... my bad. Could you be more clear then?


Tue Apr 07, 2009 7:56 pm
WWW
User avatar

Joined: Sat Jan 24, 2009 3:01 pm
Posts: 40
x2i wrote:
I'm sorry, I thought you wanted a platformer game seeing as how you mentioned jumping, walking etc... my bad. Could you be more clear then?


If I understand him correctly, I think what you gave him is fine, but he also wants some code that flips the sprite when he presses left or right. Something kinda like this
Code:
onClipEvent(enterFrame){
         if(Key.isDown(Key.RIGHT)){
               this._xscale = 100;
               this._x = this._x + 10;
        } else {
         if(Key.isDown(Key.LEFT)){
               this._xscale = -100;
               this._x = this._x - 10;
       }
}


I know its a bit simple, but he can learn and edit it to his liking.

_________________
Image


Thu Apr 09, 2009 7:30 pm
User avatar

Joined: Mon Aug 11, 2008 6:56 am
Posts: 469
Location: not so superhappy fun fun land....
MoChild wrote:
x2i wrote:
I'm sorry, I thought you wanted a platformer game seeing as how you mentioned jumping, walking etc... my bad. Could you be more clear then?


If I understand him correctly, I think what you gave him is fine, but he also wants some code that flips the sprite when he presses left or right. Something kinda like this
Code:
onClipEvent(enterFrame){
         if(Key.isDown(Key.RIGHT)){
               this._xscale = 100;
               this._x = this._x += 10;
        } else {
         if(Key.isDown(Key.LEFT)){
               this._xscale = -100;
               this._x = this._x -= 10;
       }
}


I know its a bit simple, but he can learn and edit it to his liking.

not sure if it's needed but edited your code. added "="s

_________________
Image

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


Thu Apr 23, 2009 6:26 pm
User avatar

Joined: Sat Jan 24, 2009 3:01 pm
Posts: 40
johnnyg5646 wrote:
MoChild wrote:
x2i wrote:
I'm sorry, I thought you wanted a platformer game seeing as how you mentioned jumping, walking etc... my bad. Could you be more clear then?


If I understand him correctly, I think what you gave him is fine, but he also wants some code that flips the sprite when he presses left or right. Something kinda like this
Code:
onClipEvent(enterFrame){
         if(Key.isDown(Key.RIGHT)){
               this._xscale = 100;
               this._x = this._x += 10;
        } else {
         if(Key.isDown(Key.LEFT)){
               this._xscale = -100;
               this._x = this._x -= 10;
       }
}


I know its a bit simple, but he can learn and edit it to his liking.

not sure if it's needed but edited your code. added "="s


Oh, I'm not sure its needed either, but thanks anyways!

_________________
Image


Thu Apr 23, 2009 10:13 pm
User avatar

Joined: Mon Aug 11, 2008 6:56 am
Posts: 469
Location: not so superhappy fun fun land....
MoChild wrote:
johnnyg5646 wrote:
MoChild wrote:
x2i wrote:
I'm sorry, I thought you wanted a platformer game seeing as how you mentioned jumping, walking etc... my bad. Could you be more clear then?


If I understand him correctly, I think what you gave him is fine, but he also wants some code that flips the sprite when he presses left or right. Something kinda like this
Code:
onClipEvent(enterFrame){
         if(Key.isDown(Key.RIGHT)){
               this._xscale = 100;
               this._x = this._x += 10;
        } else {
         if(Key.isDown(Key.LEFT)){
               this._xscale = -100;
               this._x = this._x -= 10;
       }
}


I know its a bit simple, but he can learn and edit it to his liking.

not sure if it's needed but edited your code. added "="s


Oh, I'm not sure its needed either, but thanks anyways!

sorry about it, i'm called a "perfectionist" by freinds....

_________________
Image

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


Fri Apr 24, 2009 3:42 pm
User avatar

Joined: Sat Jan 24, 2009 3:01 pm
Posts: 40
johnnyg5646 wrote:
MoChild wrote:
johnnyg5646 wrote:
MoChild wrote:
x2i wrote:
I'm sorry, I thought you wanted a platformer game seeing as how you mentioned jumping, walking etc... my bad. Could you be more clear then?


If I understand him correctly, I think what you gave him is fine, but he also wants some code that flips the sprite when he presses left or right. Something kinda like this
Code:
onClipEvent(enterFrame){
         if(Key.isDown(Key.RIGHT)){
               this._xscale = 100;
               this._x = this._x += 10;
        } else {
         if(Key.isDown(Key.LEFT)){
               this._xscale = -100;
               this._x = this._x -= 10;
       }
}


I know its a bit simple, but he can learn and edit it to his liking.

not sure if it's needed but edited your code. added "="s


Oh, I'm not sure its needed either, but thanks anyways!

sorry about it, i'm called a "perfectionist" by freinds....


No its fine. I am known to be picky at times too.

_________________
Image


Fri Apr 24, 2009 7:42 pm
User avatar

Joined: Wed Apr 29, 2009 11:28 pm
Posts: 323
Location: Nowhere, Antarctica
Gender: Anime Girl
Skype: Evilagram
johnnyg5646 wrote:
MoChild wrote:
x2i wrote:
I'm sorry, I thought you wanted a platformer game seeing as how you mentioned jumping, walking etc... my bad. Could you be more clear then?


If I understand him correctly, I think what you gave him is fine, but he also wants some code that flips the sprite when he presses left or right. Something kinda like this
Code:
onClipEvent(enterFrame){
         if(Key.isDown(Key.RIGHT)){
               this._xscale = 100;
               this._x = this._x += 10;
        } else {
         if(Key.isDown(Key.LEFT)){
               this._xscale = -100;
               this._x = this._x -= 10;
       }
}


I know its a bit simple, but he can learn and edit it to his liking.

not sure if it's needed but edited your code. added "="s

:facepalm: I facepalm'd, MASSIVELY.

-= and += are only used in the DECLARATION of variables, not mathematical processes!

_________________
Image

Style [Stayl] (n) - One's unique and personal method of defacing a perfectly good piece of paper.

READ THIS: http://ipgd.freehostia.com/copypasta.html


Thu Apr 30, 2009 12:29 am
Display posts from previous:  Sort by  
 [ 13 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.