Recent posts by downdown on Kongregate

Flag Post

Topic: Anti-Idle: The Game / polluted skys

back to pub as in you die? or just a friendly teleport

 
Flag Post

Topic: Anti-Idle: The Game / polluted skys

what happens after the timer expires?(i couldnt find any type of "search forum option)

 
Flag Post

Topic: Game Programming / PGGC #3: Theme selection

skeletons

 
Flag Post

Topic: Game Programming / Need help making wormhole

create a image something like a rigid circle , rotate it random so it doesnt look like the last one, scale it up, repeat , once it gets to big, return to default size and move it to the front repeat(dont create new ones after this point)

 
Flag Post

Topic: Game Programming / [AS3] Self trigged events

whats wrong with adding stuff to array when the enemy is created, then removing everything in the array when your done with it?

 
Flag Post

Topic: Game Programming / Hittest + var = Problem AS2.

root.vcam.dynamite <=3
why you need 3 or’s ?

 
Flag Post

Topic: Game Programming / [AS3] Finding intersection coordinates of point and circle

whats wrong? is it that the ball flys off in a random direction not according to the paddle or is it that the ball gets to close to the paddle if its the second one, make a invisible section of the paddle above the real paddle that the ball will collide with if its the first you need to Math.atan2() to find the proper angle the ball is to be delfected at

 
Flag Post

Topic: Game Programming / ANDROID FALLING OBJECT CODE

object.y++
unless its 3d then object.z++ or object.z— , i dont use 3d so im not sure what way is up

 
Flag Post

Topic: Game Programming / Zoom control on a movie clip

my example works fine too
http://www.ronick.info/example.swf
to download the fla(for some reason it sayes its a .zip file, im not to sure how to make stuff on my server downloadable)
http://www.ronick.info/example.fla

 
Flag Post

Topic: Game Programming / Zoom control on a movie clip

didnt have time to make some fancy drag script, so its just done based on mouse clicks, but this is what you want, am i correct?

import flash.display.Sprite;
import flash.events.MouseEvent;

var cross:Sprite = new Sprite
var mini:Sprite = new Sprite
var smile:Sprite = new Sprite

cross.graphics.beginFill(0×00FFFF);
cross.graphics.drawCircle(0,0,10);

smile.graphics.beginFill(0×00FFFF);
smile.graphics.drawCircle(0,0,50);

mini.graphics.beginFill(0×00000);
mini.graphics.drawRect(0,0,550/10,400/10);

mini.addChild(cross)
mini.x = 550 – (550/10)
//mini.y = 100

addChild(mini)
addChild(smile)

mini.addEventListener(MouseEvent.CLICK , moveit)

function moveit(e:MouseEvent)
{
cross.x = e.target.mouseX
cross.y = e.target.mouseY

smile.x = cross.x *10
smile.y = cross.y *10

}

 
Flag Post

Topic: Game Programming / Zoom control on a movie clip

make the crosshair a child of something, so its registration point is assumed to be 0,0 then when ever you move the crosshair
smiley.x = crosshair.x*10
smiley.y = crosshair.y*10

 
Flag Post

Topic: Game Programming / Nested textfield and swf loading issue

loader1.contentLoaderInfo.addEventListener(Event.COMPLETE, Resize);

private function Resize(e:Event):void
{
stage.addChild(loader1);
}

 
Flag Post

Topic: Game Programming / Nested textfield and swf loading issue

i bet you a apple that he didnt mean he used a loader when he said load

 
Flag Post

Topic: Game Programming / Nested textfield and swf loading issue

i wouldnt use the a property named x for anything, x and y are pretty much standard on everything, and i highly doubt you can overwrite them

 
Flag Post

Topic: Game Programming / Stage..

while i>stage.numChildren array.push(stage.childat(i))

its doable but 500 red balls is not the kind of thing people add to the stage

is there any REAL reason to not do it

 
Flag Post

Topic: Game Programming / icons

couldnt hurt to bump this :)

 
Flag Post

Topic: Game Programming / Viberating Player Though The Ground

try these
if (player.hitTestObject(as DisplayObject(platformBlocks[i]))){
or
if (player.hitTestObject(platformBlocks[i].parent)){

it appears your array is set to the rectangle you used to create the platform and not the platform its self
i know that if you use , its something like as DisplayObject() it may work, i had a similar issue before yet ive lost the code, if that doesnt work im sure that the rectanges parent would be what you ment to put into the array

 
Flag Post

Topic: Game Programming / Stage..

Originally posted by JamesObscura:

Because it’s very difficult to reference a specific object on the stage.

eh? maybe if you dont know how > very simple

the only reason i can figure is because it can get cluttered very fast

 
Flag Post

Topic: Game Programming / Effectively finding multiple collisions

i dont think you want to be using collision on every tile on every frame, unless these tiles are special if it must be done however

var lowest2:int = 10000;

var tiles//// your tile array
for each (var HH in tiles)
{

var point_1:Point = new Point(x,y);/////////////////point of the thing that collides
var point_2:Point = new Point(HH.x,HH.y);
var distanceBetween:Number = Point.distance(point_1,point_2);
if (distanceBetween < lowest2)
{
lowest2 = distanceBetween;
Closest = HH;
}
function mycollisionfunction(HH)
}

 
Flag Post

Topic: Game Programming / AS3; How to make bitmaps lag less

glad i stumbled apon this, sounds exsactly like what im doing currently, and yea im getting alittle bit of lag too, how are you able to check your FPS , i know you can use .dispose() to clear the bitmaps cache , however i dont know if since you constantly writing over it if .dispose() would help, since i dont know how to see fps i would of tested this my self
also each of my tiles is its own movieclip im not drawling onto a big image HOWEVER i did make a fog of war type thing(to prevent seeing threw walls) and that was all done with bitmapfills and it did generate quite alot of lag and ive turned it off, good luck and tell me if you solve anything

all things considered, i belive it is a issue with the cache, since my map updates on click and yours updates every frame, i can tell that this lag creeps up over time

 
Flag Post

Topic: Game Programming / Finding the centre of gravity of a 2D object

sounds like you need a physics engine, manually doing what your suggesting is a huge under taking

 
Flag Post

Topic: Game Programming / Moving very slowly [AS3]

i know this isnt what you asked, but you could put the moon on a larger movieclip and have the moons parent rotate making the moon move across the sky, it may look better than chaging its x,y

 
Flag Post

Topic: Game Programming / AS 2 - spawning objects in front of the player (onRelease)

dont know as2, but in as3, if you already have a bomb class ,
//var bomb1:bomb = new bomb(character .x,character.y)

oh wait you want it to follow him, just character.addChild(bomb)

 
Flag Post

Topic: Game Programming / Idle score

heres something simpler, if you need something that functions i could make it for you, just give me a idea of what you want

package {
    import flash.display.Sprite;
    import flash.utils.*;

    public class SetIntervalExample extends Sprite {
        private var intervalDuration:Number = 1000; // duration between intervals, in milliseconds
        
        public function SetIntervalExample() {
            var intervalId:uint = setInterval(myRepeatingFunction, intervalDuration, "Hello", "World");
        }

        public function myRepeatingFunction():void {
            trace(arguments[0] + " " + arguments[1]);
        }
    }
}
 
Flag Post

Topic: Game Programming / icons

anyone else?