Recent posts by Cloud_9ine on Kongregate

Subscribe to Recent posts by Cloud_9ine on Kongregate

2 hours ago ago
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Programming / Using Sounds in AS3

yes it does

import flash.events.*;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.media.SoundTransform;

var isMuted:Boolean = false;
var sound:Sound = new Music();
var tf:SoundTransform = new SoundTransform(1, 0);// volume, pan
var channel:SoundChannel = sound.play(0, 0, tf);// startTime, loops, soundTransform

function mute (e:Event) {
	if (isMuted) {
		var transform:SoundTransform = channel.soundTransform;
		transform.volume = 1;
		channel.soundTransform = transform;
		isMuted = false;
	} else if (!isMuted) {
		var transform:SoundTransform = channel.soundTransform;
		transform.volume = 0;
		channel.soundTransform = transform;
		isMuted = true;
	}
}
muteButton.addEventListener (MouseEvent.MOUSE_UP, mute);

Now whats nice is that its true mute, you dont hear it but it says playing, ready to play where it would have if it was on the entire time.

 
12 hours ago ago
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Off-topic / Whats the most firends you have had online at once.

im strict about friends so, my highest was about 16

 
12 hours ago ago
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Programming / Using Sounds in AS3

If I change a sound transform, does the sound automatically reflect it? Like I press a button changing the volume in the sound transform to 0, would the sound go mute right away?

 
Nov 21, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Kongregate / Reminder: Scion Shootorial deadline closing in!

Well I feel the game I’m working on is too good for that contest, so yea, I’m working on it longer so its better.

 
Nov 21, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Serious Discussion / Religion Poll

Far from athiest agnostic.

 
Nov 21, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Kongregate / Games with best music on Kongregate: Poll

Oroboros hands down! (but later will be my soon to be released game)

 
Nov 21, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Programming / multiple turrets not working

use < pre > tags around your code the formatting is blinding me.

 
Nov 21, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Programming / Sound

Well explain this to me, you referrer to it as root in line 4, but not in 2 or 3? Also but the _ before root.

ALSO! Besure your names are matching, 1st out have camel case, then underscores, PUH-LEASE!

 
Nov 21, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Programming / Using a scoreManager class

For my game I’m having a score manager class and I’m not quite sure for how to have in in the game. Should I give it only static functions and such, so I can jsut use it or should I just make an instance of it in my main game and refer to it from it? With the instance I would have to do Game.main.scoreManager.function, but i have less expiration with statics, and I can see more problems arising.

 
Nov 21, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Programming / Program I noticed.

You save it as an .as file, and just use it as a class in your game.

 
Nov 21, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Programming / Program I noticed.

Hey theres a program I think is jsut perfect for programming on the go.

NotePad++

It is pretty much a source code writer with support for almost any language you can think of, including AS. It has many features flash doesn’t have, like an indent guide. Sure flex is flashier, but Notepad++ is free, and if you want a pretty good program for writing your .as file better than the Flash IDE, Notepad++ is perfect.

 
Nov 20, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Kongregate / whats happening with the sanctuary?

He gave it up voluntarily, go here for more info.

 
Nov 20, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Kongregate Labs / New Developer Contest

well geez 1st for monthly is $1000, spnsors ships then would be liek $600 and then some icing from mochi ads.

 
Nov 19, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Programming / Two (hopefully) Quick Questions

1st off, use < pre > tags (w/o the spaces) and put them around your code so it looks nice.

As for your questions,

1. you create a timer, open the Flash help files (F1) and search the timer class, you will find all the stuff you need there.

2. Change the code to:

for (i=0; i>10; i++) {
     root.a[i].x+=10;
}

Hope I helped!

 
Nov 18, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Kongregate / You Have been banned more then 2 times??

Occasional warning when joined, but nothing.

 
Nov 18, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Off-topic / MacGyver vs Indiana Jones

Ehh its kind of tough, both did get raped.

 
Nov 18, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Programming / Array of Movie Clips

Fist off what come in your error console, 2nd wheres yer constructor?

 
Nov 16, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Programming / [Kongregate API] AS3 API Integration

Originally posted by Cloud_9ine:

What is the point in having both stats and scores, cant both be used for badges, also scores bit of the API seems much more capable than stats with the set mode that stats doesn’t have.

Still need some help guys, I want ot know all the difs between the two.

 
Nov 15, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Kongregate / Competition to find the best.

Image Hosted by ImageShack.us

Note my highscore in the list.

 
Nov 15, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Kongregate Labs / highscore overlapped by ships

Well you could have it so all enemys and bullets and the liek are put in a movieclip that is below the score. And I have to say, amazing graphics, how did you get those?

 
Nov 15, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Off-topic / coca cola compnay or pepsi co

Okay I’m listing it all here.

Coca-Cola Company

Coke

Sprite

Dr Pepper-Snapple

Dr. Pepper

7-Up

Pepsi Co.

Pepsi

Mountain Dew

Originally posted by re4beast:
Originally posted by spunky739:

who made 7up i dont want to look it up im lazy

The same rip off artists who made sprite.

So coke is a rip-off artist that apperently made a Dr. Pepper-Snapple Group product.

 
Nov 15, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Off-topic / coca cola compnay or pepsi co

Originally posted by re4beast:
Originally posted by Cloud_9ine:

Dr. Pepper is better, also its more classic than coke, it has been around longer.

Yes well, when I was a kid, and I wanted soda, I would always seem to have a Coke in my hand, not a Dr. Pepper

Yea well that was the same for me.

But instead of a coke a Dr. Pepper.

 
Nov 15, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Off-topic / coca cola compnay or pepsi co

Dr. Pepper is better, also its more classic than coke, it has been around longer.

 
Nov 15, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Off-topic / 99 Bricks funny screenshot

I dont see how it cant be possible, Its not liek he had to get tons of reds then more of others, I could possibly do it, It does make for a cohesive “tower” though.

 
Nov 15, 2008
avatar for Cloud_9ine Cloud_9ine 1845 posts

Topic: Programming / [FAQ] Making Games. READ FIRST!

Although not a tut or anything like that, this is a usefull tool for those who want a good free .as code program, a nice free program that works for most any programming language too. Notepad++