USERNAME:
PASSWORD:
Save Info!
Logging in…
This topic is 1 page long.
[ Profile | Posts | Contact ]
Posted at: 8/10/06 03:58 PM
Sign-Up: 07/20/06
Posts: 545
I'm making a dress-up game I already know the most important script:
on (press) {startDrag(this);
} on (release) {stopDrag();
}
but I'm trying to figure out how to make a script so that while you're pressing on a dress-up item, you can rotate the item by pressing left and right, and scale it by pressing up and down. I thank anyone that can help.
Posted at: 8/10/06 04:02 PM
Sign-Up: 12/04/04
Posts: 3,145
make the 'dress' a movieclip, and...
onClipEvent(enterFrame) { if(Key.isDown(Key.RIGHT)) { _rotation += 2; } if(Key.isDown(Key.LEFT)) { _rotation -= 2; } }
Snubby Land | Cartoons | Games | Comics | Videos
Posted at: 8/10/06 04:07 PM
the only problem with this script is that I will have more than one item in the dress-up, so if you would want to ratate one, you rotate them all. What I want to do is make it so that an object will rotate and scale with the arrow keys only while your pressing on it.
Posted at: 8/10/06 04:08 PM
Sign-Up: 08/17/03
Posts: 16,550
At 8/10/06 04:07 PM, Thewolf4000 wrote: What I want to do is make it so that an object will rotate and scale with the arrow keys only while your pressing on it.
Maybe you should fucking learn AS then.
AS: Main NG Tutorials The Big Tutorial List
www.kirupa.com www.flashkit.com www.actionscript.org www.tutorialpost.com
If the light is green, the trap is clean. PSN ID: KirkNG
Posted at: 8/10/06 04:11 PM
Sign-Up: 01/14/05
Posts: 2,968
if(this.hitTest(_root._xmouse, _root._ymouse, true)&& Key.isDown(1)){ // actions for rotating }
Untested, and I wrote it on here, so meh.
Posted at: 8/10/06 04:19 PM
At 8/10/06 04:08 PM, Kirk_Cocaine wrote: Maybe you should fucking learn AS then.
Well aren't these flash forums basically made for learning actionscript and other stuff about flash. And isn't it easier to learn by actually talking to someone instead of just reading something without being able to ask questions?
P.S. I'm not mad at you. But you may not want to flame peple like that. You can make a lot enemies. Trust me, I know.
Posted at: 8/10/06 04:21 PM
At 8/10/06 04:19 PM, Thewolf4000 wrote: Well aren't these flash forums basically made for learning actionscript and other stuff about flash. And isn't it easier to learn by actually talking to someone instead of just reading something without being able to ask questions?
Asking for AS code isn't learning.
Go read the links I gave you and teach yourself. Then come back and ask for help if you get stuck. From what I've seen you've made no attempt to code this yourself, you've just came straight in and ask for some one to tell you the code.
Posted at: 8/10/06 04:25 PM
At 8/10/06 04:21 PM, Kirk_Cocaine wrote: Asking for AS code isn't learning. Go read the links I gave you and teach yourself. Then come back and ask for help if you get stuck. From what I've seen you've made no attempt to code this yourself, you've just came straight in and ask for some one to tell you the code.
Look, I'm not trying to make a fight with you. But I have already tried to find this code out for myself and failed a lot of times. I've looked on actionscript.org and flashkit.com and found no help, so I turned to these forums.
Posted at: 8/10/06 04:27 PM
At 8/10/06 04:25 PM, Thewolf4000 wrote: Look, I'm not trying to make a fight with you. But I have already tried to find this code out for myself and failed a lot of times. I've looked on actionscript.org and flashkit.com and found no help, so I turned to these forums.
Instead of looking for code, learn and write the code yourself ;)
Posted at: 8/10/06 04:29 PM
Sign-Up: 06/25/04
Posts: 4,336
At 8/10/06 04:21 PM, Kirk_Cocaine wrote: Go read the links I gave you and teach yourself. Then come back and ask for help if you get stuck. From what I've seen you've made no attempt to code this yourself, you've just came straight in and ask for some one to tell you the code.
Now now Kirk? Didn't you get the memo? We're meant to be kind and tolerant to n00bs who barge in here demanding answers, no matter how damn annoying thier questions might be...
Topic Starter? WHY would you want to scale and rotate clothing? Do you know anyone who wears thier t-shirt upside down and thier trousers seven times the size of them?
- Kayn Slamdyke (KSd) - Motorcycle Moderator [[892646]] - Randomly destroying picture spam without warning since 2008
Posted at: 8/10/06 04:31 PM
At 8/10/06 04:29 PM, KaynSlamdyke wrote: Now now Kirk? Didn't you get the memo? We're meant to be kind and tolerant to n00bs who barge in here demanding answers, no matter how damn annoying thier questions might be...
Memo's are for lesbians.
You could do that in Build A Robot 2.1 .
Who wants to be original?
All times are Eastern Standard Time (GMT -5) | Current Time: 09:04 AM
<< Back