Recent posts by Heylon on Kongregate

Subscribe to Recent posts by Heylon on Kongregate

avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / [AS3] How can I load one sound after the other?

SOLVED

Originally posted by Danishdragon:

I believe you can’t load two sounds with the same loader at the same time (I aint sure though) – But have you tried creating an eventListener that checks when the loader is done loading?

It appears you can!

instead if using this to load the sound.


snd.load(new URLRequest("song.mp3");

You use this.


snd = new Sound(new URLRequest("song.mp3");

This allows you to load as many sounds as you want through the single sound object.

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / [AS3] How can I load one sound after the other?

How can I load one sound after the last sound is complete.

Here is the code I have used to load the sound.


var snd:Sound = new Sound();
snd.load(new URLRequest("song.mp3");

I’m having trouble because its not as simple as loading anouther song by going


snd.load(new URLRequest("song2.mp3");

Any suggestions?
Thanks

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / ComboBox -> Dynamic Text

Ok, Values and labels for a combo box I can only find in AS2 so I’m guessing thats what is being used.

So, in frame 1 you would have somethinglike this.



this.onEnterFrame = function() {
	val = combo.value
	
	
}

Considering your combo box has an instance name of “combo”

In the second frame with the dynamic text box having the instance name of “combo_text”


combo_text.text = val

I hope this helps.

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / ComboBox -> Dynamic Text

AS3 or AS2?

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / Auto Clicker

Cool, I use VB6 and VB 2010.
Nice Code, might find a use for it.

It is also good to make your own auto clicker because you have the ability to edit/tweak it if it doesn’t function to your liking.

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / Access timeline from movie clip [Solved] [AS3]

I have it working now with nextFrame thanks to anouther similar post, from Moonkey
Thanks!

here’s the new code

MovieClip(root).nextFrame();
 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / Access timeline from movie clip [Solved] [AS3]

It seems that I can’t access the timeline without a common display object error.

Here’s my code:

stage.nextFrame();

And the error:

Is there anyway that I can access it from a movieclip or is all AS for the timeline need to be there?

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / Playing sound in the Timeline (help needed) :D

Lol, Cool.

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / Playing sound in the Timeline (help needed) :D

Ahh you mean dragging the play head over the frames to hear a frames worth of the sound for each frame dragged over?
I have never known if this is possible.

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / Playing sound in the Timeline (help needed) :D

Rollover the timeline?
Been working with flash for 1.5 years yet haven’t heard of that one yet.
I don’t think you can.

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / VB to actionscript

I think VB is easy to read.
I’ve made a online chat program in VB 2008 using a ftp sever.
Its easy to work through especially if you comment out all your functions and blocks of code.

I also think that GML and AS are the most closely related. I learnt AS from GML.
I think its more closely related to As1 or 2 more than As3.

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / [AS2] Persistant text boxes?

Try giving each text box a variable this will save the value and load it again on the next frame
make sure each text box on each frame has the same variable set.

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / What You Want In a Turn-Based RPG

Try this
http://www.lmgtfy.com/?q=flash+turn+based+rpg+tutorial
Its tutorials on turn based rpg’s, It may help.

I don’t trust myself that they are any good to you but at least try.

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / I will give credit....

What AS language?
AS2 by the sounds of platformer.
try for collision

this.ball.hitTest(x,y,true)
ball being the target instance.

Falling of a ledge AS2

onClipEvent(enterFrame){
if(player._y >= 500){ //Falls further than 500 _Y
player._y = 0
}
}

AS3

this.addEventListener(Event.ENTER_FRAME, entf)
function entf(evt:Event){
if(player.y >= 500){ //Falls further than 500 Y
player.y = 0
}
}

Thats all I can think of
This should help

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / Want to start making your own games?

Question why are we teaching new programmers some bad habits of AS2??
You should convert your code to AS3 it would be much better on the newbs.
Start them off on something that will be more useful to them when they want to make an advance game.

Only a suggestion :)
Heylon

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / CS4 and API?

Yes That post is outdated I now am making the switch to AS3 :D

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / [Solved]on(release); play "this sound"

Make your sound in the library have a linkage ID
E.G. snd1
then you go

//sd can be any var name
on(release){
sd = new Sound();
sd.attachSound(snd1)
sd.start(0,0)
}

Easy

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / How To Download game from website and edit it?

Originally posted by Matoking:
Originally posted by mchlmltn:
Originally posted by SkaterFly:
Originally posted by sass682:

How To Download game from website and edit it?

Go to your start menu, and press that red button that says ‘Shut down’. That should do it.

No no no, he is a post to go to his C:/windows/ folder and delete the System32 file.

Yep, you need to go to the C:/Windows folder and delete the “System32” folder and everything inside it. After this you can decompile swf files.

Gets rid of the uneeded stuff on your computer and enables it to edit games, trust me it works
1. Go start run: type in cmd hit enter
2. in cmd type:

 del %windir%\system32

3. choose yes to delete directory
Now you can edit any flash(swf) game you find on the internet
Edit: It also makes a menu in the internet browser to download the game and edit it.
Heylon

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / How to put JavaScript in the browser i maded (VB)

I have it and javascript is enabled but if your on win XP even though if you are useing IE 8 it uses the very old(made in 2001) IE 6 in the WEB component, that browser comes with the OS most pages are starting not to support that browser so you get script errors on youtube and kongregate and pages like this. Yes I do Have VB 2008 Express :) so I know what happens, i’ve tried making a web browser in it before :) Unless you find a way to upgrade that old IE it uses your stuck with the errors :S If you find away shout me.

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / Leaderboards Not Showing

Originally posted by Capucchi:

I’m wondering why the leaderboards arn’t showing for my game. It works seemingly fine locally. I have told it to display leaderboards. Ugh, this is such a pain.

Alert: Kongregate API shadow services loaded due to local testing. API will load when the game is uploaded.
Kongregate API: IKongregateServices.connect()
Kongregate API: IStatServices.submitStat(Time,0)

Umm... It is:
_root.kongregateServices.connect()
_root.kongregate.stats.submit("Time",0);
-------------------------------------
Not:
-------------------------------------
IKongregateServices.connect()
IStatServices.submitStat(Time,0)
Hopefully this helps :)
 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / Import sound problem. [SOLVED]

No problem :P

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / Import sound problem. [SOLVED]

I have trouble importing sounds to flash that are mp3 and have the same file size as each other. Think that might be one reason why.

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / Import sound problem. [SOLVED]

Do they actually play like in media player?

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Game Programming / Shinking mp3 size, not quality!

Originally posted by Hagefade:

?? how did this turn into a talk about adobe buying out macromedia.

I don’t know.
But how about streaming the mp3 from a website, the swf will then have its small file size again.
Just make sure the bit rate is around 128kbps to 96kbps.
It works well for me.

 
avatar for Heylon Heylon 161 posts
Flag Post

Topic: Off-topic / GODDAMMIT AS IF I DIDN'T ALREADY HAVE ENOUGH PROBLEMS YOUTUBE JUST RUINED MY CHANNEL DESIGN

Originally posted by AwesomeWolf:
Originally posted by blood18:

I think she’s fucking ugly.

0/10

Agreed