Recent posts by Penboy on Kongregate

Flag Post

Topic: The Arts / Stick creatures

These would be pretty easy to draw. Put more time into them.

 
Flag Post

Topic: Game Programming / Convert flash games for mobile phones ? how can you ?

Use Flash Lite, converts everything to your mobile.

 
Flag Post

Topic: Game Programming / Preloader doesnt work

It’s only a banner that you can put into your games, or a signature pic that you can have on other sites off of Kong to make the site gain more recognition :]

 
Flag Post

Topic: Game Programming / Buttons for Movieclips!

Ok I’m here to teach those who don’t know, a method used in dress-up games and such, a trick that when you to click a button, it will make a Movieclip change frame. It may sound simple; well that’s becasue it is.

First off:

Make a new Flash document. Any dimensions will do. Now create a new symbol (Insert>New Symbol…) and select Movieclip. Name is anything you want. On you first frame put a

stop();

command in the ActionScript (AS) box (F9). Now go to your stage. Draw, for example, a person. Hit F7 to insert a blank keyframe, and draw that same person in a different pose (or different colour, it’s up to you). Make as many keyframes as you like. Once you’ve finished go back to your main timeline and drag your MC onto the stage. Give it an Instance Name of ‘person’, without the quotations.

The Buttons:

Make 2 buttons, one Next and one Back. In the ‘Next’ button put this code in the AS box:

on (release) {
tellTarget ("person") {
nextFrame();
}
}

(Thats for older Flash versions like Flash 5, but if you want the new code it’s:)

on(press){
person.nextFrame();
}

That means when you click and release that button, it will go to the next frame inside the MC ‘person’. Now in your ‘Back’ button it’s pretty much the same code only with a prevFrame(); difference. Here’s the code:

on(press){
person.prevFrame();
}

Now hit Crtl>Enter to test your movie.

~Penboy

 
Flag Post

Topic: Kongregate / No Offense, but this is not a good idea.

DestinyPersists, you said Newgrounds isn’t popular, yet is has over 1,000,000 + users (and was developed in 1998), however Kong has only just recently been made and already has a massive fan base :D

 
Flag Post

Topic: Game Programming / Partner Up?

What sort of game is it? And being the idea maker is only 10% of what is needed to bring the game to life!

 
Flag Post

Topic: Game Programming / Make a preloader [How to]

I’m feeling generous again, so I’ve decided to make another forum-based tutorial. But this time it’s…

===

Preloaders!

A preloader basically loads your game/movie so when you play it, it wont lag. Ok, all you need are 2 blank keyframes on your main timeline (F7). On your first BLANK keyframe insert this code into the AS box (lets hope this turns out right _):

var bytes = _root.getBytesTotal();
var bytes_loaded = _root.getBytesLoaded();
percent = int((bytes_loaded)/(bytes)*100) + "%";
if (bytes_loaded == bytes) {gotoAndPlay(3)}

What does that do, you ask? Well it tells Flash “Hold up bud, you’re not moving until you’re loaded ALL of this guys movie. You hear?!” Ok so it doesn’t really say that, but in general terms yes…

Now on your second BLANK keyframe insert this:

gotoAndPlay(1)

This will make your movie play after it’s loaded. Now start your movie of frame 3 :D

===

~Penboy

 
Flag Post

Topic: Game Programming / Make a mouse avoider :D

ok this is just a test:
(pre)Stage.showMenu=false;(pre)


shoot! I’m such a noob a Kong’s coding…
I’ll try again (pre)Stage(/pre)


o….m…..g this is giving me high blood pressure

(pre)
function doStuff () : Void
(/pre)

function doStuff () : Void
</pre)

Edited by arcaneCoder. Reason: Triple post consolidation :)

 
Flag Post

Topic: General Gaming / half life 2

I’ve only got the demo, but it’s a great game; awesome physics and the like.

 
Flag Post

Topic: Game Programming / Make a mouse avoider :D

Ahh shoot! The script didn’t post vertically! My apologies :’(

(Just press enter in the AS box to make a new line for the code when necessary, if you know where :( )

 
Flag Post

Topic: Game Programming / Make a mouse avoider :D

People have been asking how to make games using Flash, so I've decided to make a 'Kongregate Forum Tutorial'. In this tutorial I'm going to teach you how to make a very basic Mouse-Avoider game. What is a mouse avoider? -It is usually a game where you can't touch walls, and you have to get to the end of the level. What do I need? -Flash 8 -Basic knowledge of the program Lets get started... ====================== First of draw a SMALL circle. Highlight all of it and press F8. Select the option 'Movie clip' and name it accordingly. Now double click on your MC and make sure the little '+' is in the center of you circle. Double click anywhere to go back to your main timeline. Select your MC and press F9 to bring up your Properties box. Give your circle the instance-name of cursor. Now open the panel directly above named 'Actions - Movie clip' and paste this code into it:
onClipEvent (enterFrame) {
//x movement
 mx=_root._xmouse;
 if (mx<_x><_x><_x><_x><_y><_y>
That tells the MC 'cursor' to follow the (invisible) normal mouse sluggishly, creating a cool effect. Now insert a new layer and draw your walls. Select everything (Ctrl>A) and make it into a new MC. Name it accordingly. This new MC doesn't require an instance name, so just go directly to the AS (Action-Script) box and paste in this code:
onClipEvent(enterFrame){
if(this.hitTest(_root.cursor._x, _root.cursor._y, true)){
_root.gotoAndStop("2");
}
}
This tells Flash that when 'cursor' hits the wall MC, it will take you to frame 2. On your Timeline press F7. This will make a clear key frame. In this key frame draw a message such as 'Game Over'. Insert a new layer, and put this command into it:
stop();{
Stage.showMenu=false;
}
This will make sure that the game will not stop on frame 1 and 2, whilst hiding the right-click menu. Go back to your cursor layer and draw a square. Turn it into a MC and put this code into it:
onClipEvent(enterFrame){
if(this.hitTest(_root.cursor._x, _root.cursor._y, true)){
_root.gotoAndStop("3");
}
}
That tells Flash to take you to frame 3 when cursor hits it. On your Timeline insert another blank key frame (F7) and put a message in it such as 'You Won' Hit Ctrl>Enter to test your game. ====================== In a nutshell, thats how you make basic mouse avoiders. Remember these hints though: +Don't make your walls too thin, or your cursor can go through them! +Don't make your levels impossible, otherwise people will gave up! +Make the winning square go to different frames (levels) EXTRA: -VCAM- If you have a V-Cam, put this code into it:
onClipEvent (enterFrame) {
	_y += (_root.cursor._y-_y)/4;
	_x += (_root.cursor._x-_x)/4;
}
That tells the camera to follow cursor. ====================== Happy gaming! Tell me what you think :D ~Penboy
_Edited by arcaneCoder. Reason: Added code formatting tags. Hope that helps!_
 
Flag Post

Topic: The Arts / pirate for damijin

Nice sketches :D

 
Flag Post

Topic: Game Programming / how do you upload a game?

To upload a game (must be in .swf format) click the U P L O A D link ;D

 
Flag Post

Topic: Kongregate / TV!?

You did a good job :D

 
Flag Post

Topic: Game Programming / Hide the menu!

I’ve seen many games on this site which allow people to right click and press play/forward/back before the game has loaded, which means the player can ‘cheat’. I strongly advise every flash author to implement this code on the frames throughout their game:

Stage.showMenu=false;

~Penboy

 
Flag Post

Topic: Game Programming / where do we make it?

Macromedia Flash 8 is the program used to make Flash games and/or movies.

 
Flag Post

Topic: Game Programming / Flash games creator?

You need to buy Macromedia Flash 8 from Adobe.com Then once you have that (aprox $800) you’ll need to learn how to use it. I suggest these flash tutorials.

(Sorry if the link didn’t work)

 
Flag Post

Topic: General Gaming / Cheats & Walkthrough Dilemma.

I think it’s ok to cheat, after you’ve beaten the game.