Stick Page Forums Archive

My very first game in flash

Started by: The Dude | Replies: 12 | Views: 751

The Dude
2

Posts: 1,526
Joined: Dec 2007
Rep: 10

View Profile
Nov 6, 2009 5:02 AM #510648
So I downloaded Flash CS3 and stuff, and I made my first game today. Learned actionscript a bit too! My very first product pretty much ever made in flash. I know it's not great, but I learned about buttons, and shit. So just play it I guess. :}

http://www.truploader.com/view/285771

It's extremely frustrating if you don't cheat. lol/
Vendetta

Posts: 1,238
Joined: Oct 2009
Rep: 10

View Profile
Nov 6, 2009 6:19 AM #510660
yeah I just cheated the whole way and beat it in like thirty seconds.

It's good for your first game! Maybe you should try some other types of games like maybe a sniper to start or a platform game, with a stick that walks around with the arrow keys.
Orange Blob
2

Posts: 987
Joined: Dec 2008
Rep: 10

View Profile
Nov 6, 2009 12:50 PM #510714
lulz. Poor Flood, are you feeling left out :P
Anyway. It's better than the crap that most people churn out.
But try a platformer. It's more challenging and a lot of fun when it starts shaping up.
The Dude
2

Posts: 1,526
Joined: Dec 2007
Rep: 10

View Profile
Nov 7, 2009 2:39 AM #510900
I know flood :) but you only gave me the code to make the mouse invisible lol. I'll make a platformer but I'll have to work hard on the art and animation D:
quasquiat

Posts: 1
Joined: Nov 2009
Rep: 10

View Profile
Nov 7, 2009 2:39 AM #510902
I'll make a platformer but I'll have to work hard on the art and animation D:
Scarecrow
2

Posts: 9,168
Joined: Oct 2005
Rep: 10

View Profile
Nov 7, 2009 2:56 AM #510910
there's a code for disabling the context menu kicking around somewhere, i'll have a look around for it.

[edit] here it is
//put this on the first frame of your game to disable the right click (context) menu.
//this makes it impossible to cheat in a lot of ways for many different sorts of games.
//this code will work only for actionscript 3. there is another code for AS2.
var my_cMenu:ContextMenu = new ContextMenu();
my_cMenu.hideBuiltInItems();
contextMenu = my_cMenu;




you should also try making the levels unlock buttons on the main menu so you don't have to play through everything again if you lose



this would be done with variables, probably something like:

a button on the mian menu for each level, that appears only when its variable (let's say something like unlocked_levelone) is set to "true"

and then on the frame of each level, you set that level's unlocked variable to "true" so that the button appears if you lose


this is a challenge for you, go forth and further your knowledge!
The Dude
2

Posts: 1,526
Joined: Dec 2007
Rep: 10

View Profile
Nov 7, 2009 6:05 AM #510942
Quote from Scarecrow
there's a code for disabling the context menu kicking around somewhere, i'll have a look around for it.

[edit] here it is
//put this on the first frame of your game to disable the right click (context) menu.
//this makes it impossible to cheat in a lot of ways for many different sorts of games.
//this code will work only for actionscript 3. there is another code for AS2.
var my_cMenu:ContextMenu = new ContextMenu();
my_cMenu.hideBuiltInItems();
contextMenu = my_cMenu;


you should also try making the levels unlock buttons on the main menu so you don't have to play through everything again if you lose



this would be done with variables, probably something like:

a button on the mian menu for each level, that appears only when its variable (let's say something like unlocked_levelone) is set to "true"

and then on the frame of each level, you set that level's unlocked variable to "true" so that the button appears if you lose


this is a challenge for you, go forth and further your knowledge!


Thanks for the help! :D
But I'm using actionscript 2.0. I just made it so if you **** up you go all the way back to piss people off, lol :D
Scarecrow
2

Posts: 9,168
Joined: Oct 2005
Rep: 10

View Profile
Nov 7, 2009 6:44 AM #510965
function deadClick () {
}
var myMenu:ContextMenu = new ContextMenu();
var nocheating:ContextMenuItem = new ContextMenuItem("No cheating for you!", deadClick);
myMenu.hideBuiltInItems();
myMenu.customItems.push(nocheating);
_root.menu = myMenu;


try this then
N T
2

Posts: 1,825
Joined: Oct 2008
Rep: 10

View Profile
Nov 7, 2009 6:47 AM #510966
My hands twitch.
The Dude
2

Posts: 1,526
Joined: Dec 2007
Rep: 10

View Profile
Nov 7, 2009 7:15 AM #510982
I was thinking of making a game a little more advanced than a mouse avoider but a little more simple than a platformer? maybe a topdown shooter?

anyone know of any good tutorials or anything?
Tawnik
2

Posts: 2,292
Joined: May 2007
Rep: 10

View Profile
Nov 7, 2009 1:05 PM #511019
I am an cheater idk if you guys know that but if you right click on the start and left click on the finish you win immediately =) but, the last level took me like 20 seconds because I couldn't find the finish line =D
The Dude
2

Posts: 1,526
Joined: Dec 2007
Rep: 10

View Profile
Nov 7, 2009 5:28 PM #511074
I have all the gravity down and shit, but how do I make it so it doesn't fall off the stage when it touches the MC 'ground'
Scorpioxxx
2

Posts: 1,454
Joined: Apr 2006
Rep: 10

View Profile
Nov 7, 2009 6:43 PM #511097
check if its touching the ground and the grounds y is less than the players, if this is true, return true/yes/anything you want which in turn isn't what is needed to run 'gravity' otherwise, return something else and run gravity. Off the top of my head I think that's how I went about it in AS2, not tried it with AS3 if you plan on trying that.
Website Version: 1.0.4
© 2025 Max Games. All rights reserved.