|
-
Movement help!!!
I need some help with this game i've been working on. I got everything down EXCEPT my guys movement. When you click, i need the guy to move to where you clicked. But, i want and animation to play when you click. And i also want the character to rotate like in the game Club Penguin when you move the mouse around. Here is what i have done:
http://www.swfcabin.com/swf-files/1281471363.swf
The movie clips are in root/ something. I don't know anything about flash...
-
Senior Member
If you like me, add me to your friends list  .
PS: looking for spriters and graphics artists for a RPG and an Arcade fighting project. If you can help out, please pm me!
My Arcade My Blog
Add me on twitter: 
-
Senior Member
kirby, you should really make your own game, not just copy all rsnail's hard work. Even if it's just place holder art until you make your own unfortunately it's still plagiarism and against the law. (because you've posted it online and claimed it as your own)
If you're going to get into the hard work of programming a game, you might as well make it your own so you don't get a cease and desist order from or sued by Disney (who own Club Penguin now).
Now, as far as I can see, the problem with your game from the older thread is that you have put it on a movie clip not on a frame.
The following code with make your character turn, assuming it has frames of it facing each of 8 directions in order (like in Club Penguin). (starting from facing forward, and turning clockwise)
Code:
var frame:Number = Math.floor((penguin.rotation+180)/45)+1;
penguin.gotoAndStop(frame);
It adds 180 to the rotation (making it go from 0 to 360 instead of -180 to 180 as default), then divides that by 45 and rounding it down (making it go from 0 to 7) and then adding one (making it from 1 to 8)
Just remember to make the game your own. Even if it just means making it turtle chat or something.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|