Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


how do i?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
deleted user 111213
Grandmaster Cheater
Reputation: 0

Joined: 09 Nov 2007
Posts: 714

PostPosted: Mon Apr 07, 2008 1:58 pm    Post subject: how do i? Reply with quote

i'm making a game using flash 8. and if anyone here knows AS would they plz help me.
this is the code
Code:

1.   onClipEvent (load) {
2.       yspeed = 0;
3.       xspeed = 0;
4.       wind = 0.00;
5.       power = 0.65;
6.       gravity = 0.1;
7.       upconstant = 0.75;
8.       friction = 0.99;
9.   }
10.   onClipEvent (enterFrame) {
11.       if (Key.isDown(Key.LEFT)) {
12.           xspeed = xspeed-power;
13.       }
14.       if (Key.isDown(Key.RIGHT)) {
15.           xspeed = xspeed+power;
16.       }
17.       if (Key.isDown(Key.UP)) {
18.           yspeed = yspeed-power*upconstant;
19.       }
20.       if (Key.isDown(Key.DOWN)) {
21.           yspeed = yspeed+power*upconstant;
22.       }
23.       xspeed = (xspeed+wind)*friction;
24.       yspeed = yspeed+gravity;
25.       _y = _y+yspeed;
26.       _x = _x+xspeed;
27.       _rotation = _rotation+xspeed;
28.       if (_root.wall.hitTest(_x, _y, true)) {
29.           xspeed = 0;
30.           yspeed = 0;
31.           _x = 120;
32.           _y = 120;
33.           _root.score -=2;
34.       }
35.       if (_root.coin.hitTest(this.hero_hit)) {
36.           _root.coin._x = Math.random()*400+50;
37.           _root.score ++;
38.       }
39.   }

could someone plz help me. i need the AS for the coin and the wall(if there is any) but plz someone help me.
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Mon Apr 07, 2008 3:22 pm    Post subject: Reply with quote

http://www.emanueleferonato.com/2006/11/18/flash-game-creation-tutorial-part-2/

That? I found it in my bookmarks.
Back to top
View user's profile Send private message MSN Messenger
deleted user 111213
Grandmaster Cheater
Reputation: 0

Joined: 09 Nov 2007
Posts: 714

PostPosted: Tue Apr 08, 2008 10:01 am    Post subject: Reply with quote

i looked at that, it didn't tell me anything that I don't know already
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites