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.



 [ 5 posts ] 
[Request] Help with rotation 
Author Message
User avatar

Joined: Tue Aug 12, 2008 12:35 pm
Posts: 786
Location: Florida
Gender: Male
k I got mario all moving and whatnot but one thing I need to do is make animations start with the press of the key. halp? :eew: oh and also, how do you set the variables like maxSpeed, backSpeed, and rotationstep? :3 k thx, in the meanwhile, I'll look up how to invisible rotate the car since I'll make it look like it's rotating with the animations. or is that impossible? O_O halp DX
oh and how to set collisions :wee:


Wed Aug 20, 2008 7:18 pm
YIM WWW

Joined: Sun Aug 17, 2008 1:51 pm
Posts: 79
ghost392 wrote:
k I got mario all moving and whatnot but one thing I need to do is make animations start with the press of the key. halp? :eew: oh and also, how do you set the variables like maxSpeed, backSpeed, and rotationstep? :3 k thx, in the meanwhile, I'll look up how to invisible rotate the car since I'll make it look like it's rotating with the animations. or is that impossible? O_O halp DX
oh and how to set collisions :wee:


idea theft...

i wish i could help but im not using flash at the moment

_________________
Jirachi wrote:
I'm now switching from RPG Maker To Game Maker. Way better. Period. Anyways, This game will work way better, so you guys that are pro at Game Maker [Silently points at that crazystunTdouble] can help me.


Thu Aug 21, 2008 4:53 pm
User avatar

Joined: Mon Aug 11, 2008 6:56 am
Posts: 469
Location: not so superhappy fun fun land....
ghost392 wrote:
k I got mario all moving and whatnot but one thing I need to do is make animations start with the press of the key. halp? :eew: oh and also, how do you set the variables like maxSpeed, backSpeed, and rotationstep? :3 k thx, in the meanwhile, I'll look up how to invisible rotate the car since I'll make it look like it's rotating with the animations. or is that impossible? O_O halp DX
oh and how to set collisions :wee:

only thing I can help with is this:
Key codes for animations:
Code:
if (Key.isDown(Key.LEFT/RIGHT)) {
this.gotoAndPlay(theframewiththeanimationyouwantinsideyourcharacterMC);
}
Also, if you want him/her to change sides when you press left or right, add this:
scale = _xscale;
then put this w/ left or right:
    if (Key.isDown(Key.LEFT)) {
        _xscale = -scale;
    }
    if (Key.isDown(Key.RIGHT)) {
        _xscale = scale;
    }
}

collisions:
Code:
if (this.hitTest(_root.whateveryouwant)) {
this.whateveryouwant or _root.whateveryouwant
}

_________________
Image

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


Fri Aug 22, 2008 7:22 pm
User avatar

Joined: Tue Aug 12, 2008 10:07 am
Posts: 24
Location: ohio
Gender: Male
Code:
Also, if you want him/her to change sides when you press left or right, add this:
scale = _xscale;
then put this w/ left or right:
if (Key.isDown(Key.LEFT)) {
_xscale = -scale;
}
if (Key.isDown(Key.RIGHT)) {
_xscale = scale;
}
}


It keeps saying,
Error line 1: undeclared identifier ket
Error line 1: expected ;


Sun Nov 16, 2008 3:05 pm
User avatar

Joined: Mon Aug 11, 2008 6:56 am
Posts: 469
Location: not so superhappy fun fun land....
Fojam wrote:
Code:
Also, if you want him/her to change sides when you press left or right, add this:
scale = _xscale;
then put this w/ left or right:
if (Key.isDown(Key.LEFT)) {
_xscale = -scale;
}
if (Key.isDown(Key.RIGHT)) {
_xscale = scale;
}
}


It keeps saying,
Error line 1: undeclared identifier ket
Error line 1: expected ;

my bad, here it is:
Code:
// Also, if you want him/her to change sides when you press left or right, add this:
onClipEvent (load) {
scale = _xscale;
}
onClipEvent (enterFrame) {
// then put this w/ left or right:
if (Key.isDown(Key.LEFT)) {
_xscale = -scale;
}
if (Key.isDown(Key.RIGHT)) {
_xscale = scale;
}
}

better?

_________________
Image

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


Tue Nov 25, 2008 9:37 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.