Recent posts by DahliaK1 on Kongregate

Flag Post

Topic: Off-topic / tablet stylus help please!

yes it’s like holding the click forver and as soon as I hover the stylus on top of the tablet it clicks…
well when i hover it above it it shoouldn’t click..only when i touch the tablet with the tip then it’ll click..
mine is just holding the click on hover!

 
Flag Post

Topic: Off-topic / tablet stylus help please!

I have a Genius i608x
i tried changing the tip, the settings, the batteries, upgrading the software, and tried it on another laptop..same problem
why are all my styluses ending up with the same problem is beyond me _

 
Flag Post

Topic: Off-topic / tablet stylus help please!

it’s like my third stylus so far..and everytime the same problem.
When the tip touches or hovers above the tablet it just keeps clicking like you’re holding the left click constantly! why is it happening?
can anyone tell me?
I am losing so many styluses that way..

 
Flag Post

Topic: Game Programming / Ideas for making language choosing option in platform flash game

What is the best way to make a language choosing option in a platform flash game?
different keyframes and goto buttons (i think it’s incredibly complicated) ? or loading a external swf file ? a coding?

any ideas?

 
Flag Post

Topic: Game Programming / move to next frame when my character hits an object?

Originally posted by Draco18s:

You just have to sit down and start using it.

Sure, you have to relearn some stuff, but in the end it makes things SO much easier.

You’re right.
I am going to take your advice…. my next game is going to be in as3 hopefully I will finally learn it. :)

 
Flag Post

Topic: Game Programming / move to next frame when my character hits an object?

Originally posted by Draco18s:
Originally posted by DahliaK1:
Originally posted by Draco18s:

Yes:

_root.gotoAndStop (nextFrame)

Is nextFrame defined?

oh my silly me! I’ve been so flooded with coding the entire game that I forgot to define it! I’m so blind I haven’t noticed it! D:
finally I defined it and it worked thankyou so much

And that is why you should use AS3.

ofcourse I want to someday… is it easier to grasp than as2?
it’s just that I am lacking the time to do so, though I’d love to learn it

 
Flag Post

Topic: Game Programming / move to next frame when my character hits an object?

Originally posted by Draco18s:

Yes:

_root.gotoAndStop (nextFrame)

Is nextFrame defined?

oh my silly me! I’ve been so flooded with coding the entire game that I forgot to define it! I’m so blind I haven’t noticed it! D:
finally I defined it and it worked thankyou so much

 
Flag Post

Topic: Game Programming / move to next frame when my character hits an object?

Originally posted by Draco18s:

His problem is that the “next frame” code doesn’t appear to be working, not that the hit test isn’t working.

If the object was attempting to collide with itself (which is true) then his code would be telling the main timeline to change frames, which is a desired behavior, but it appears to not be happening.

yes the next frame code is not working…any idea how to fix it?

 
Flag Post

Topic: Game Programming / move to next frame when my character hits an object?

Originally posted by someone93:

Where is this code? Is it under char or mic_mc?

If it’s under char, which would make sense, then

this.hitTest(_root.char)

should be

this.hitTest(_root.mic_mc)

Otherwise, try putting some trace statements and check if the enterFrame is running properly. And if so, check when the hitTest is triggering.

the code should be on the mic_mc (< this is a microphone object that when my character hits it, it will transport him to the next frame of my game)

 
Flag Post

Topic: Game Programming / move to next frame when my character hits an object?

I tried all the codes but none are working….

I have this one here
my character is named “char” and the object I want him to hit to go to the next frame is “mic_mc”
do you know why it’s not working?

onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
unloadMovie(this);
_root.gotoAndStop (nextFrame)
}
}

 
Flag Post

Topic: Game Programming / Vcam help

thankyou so much guys for your help! I managed to fix it :)

 
Flag Post

Topic: Game Programming / Vcam help

I am making a platform game where the vcam follows my character…all is working great so far but the vcam is very annoying..it follows the character in the center and shows a lot of useless space on the buttom of my screen…in other words how do I make my Vcam follow the character without it in the center…I tried moving it resizing it and even chaging some of the codes but it’s not working….

am I making sense?
my code I’m using for the vcam is this:

import flash.display.BitmapData;

_visible = false;

addProperty("_x2",get_x2,set_x2);
addProperty("_y2",get_y2,set_y2);
addProperty("_xscale2",get_xscale2,set_xscale2);
addProperty("_yscale2",get_yscale2,set_yscale2);
addProperty("_rotation2",get_rotation2,set_rotation2);

var oldScaleMode:String = stage.scaleMode;
stage.scaleMode = "exactFit";

var sW:Number = Stage.width;
var sH:Number = Stage.height;

stage.scaleMode = oldScaleMode;


var bounds_obj:Object = this.getBounds(this);

var camH:Number = Math.abs(bounds_obj.yMax-bounds_obj.yMin);
var camW:Number = Math.abs(bounds_obj.xMax-bounds_obj.xMin);


var rp = {x:this._x, y:this._y};

onEnterFrame = function ():Void {
	camControl();
};


function camControl():Void {


	rp.x = _x;
	rp.y = _y;
	var h:Number = camH*(_yscale*.01);
	var w:Number = camW*(_xscale*.01);


	var _scaleY:Number = sH/h;
	var _scaleX:Number = sW/w;
	_x2 = (w/2)*_scaleX;
	_y2 = (h/2)*_scaleY;

	_xscale2 = _scaleX*100;
	_yscale2 = _scaleY*100;

	_rotation2 = -_rotation;


	_parent.filters = this.filters;
	_parent.transform.colorTransform = this.transform.colorTransform;

}

this.onUnload = reset;

function reset():Void {

	
	_parent._xscale = 100;
	_parent._yscale = 100;
	_parent._x = 0;
	_parent._y = 0;
	_parent._rotation = 0;
	_parent._visible = true;

}

function set_x2(value:Number):Void {
	var a = {x:rp.x, y:rp.y};
	_parent.localToGlobal(a);
	_parent._x += value-a.x;
}
function get_x2():Number {
	var a = {x:rp.x, y:rp.y};
	_parent.localToGlobal(a);
	return a.x;
}

function set_y2(value:Number):Void {
	var a = {x:rp.x, y:rp.y};
	_parent.localToGlobal(a);
	_parent._y += value-a.y;
}
function get_y2():Number {
	var a = {x:rp.x, y:rp.y};
	_parent.localToGlobal(a);
	return a.y;
}

function get_xscale2():Number {
	return _parent._xscale;
}
function set_xscale2(value:Number):Void {
	setProperty2("_xscale",value);
}

function get_yscale2():Number {
	return _parent._yscale;
}

function set_yscale2(value:Number):Void {
	setProperty2("_yscale",value);
}

function get_rotation2():Number {
	return parent.rotation;
}
function set_rotation2(value:Number):Void {
	setProperty2("_rotation",value);
}

function setProperty2(prop:String, n:Number):Void {
	var a = {x:rp.x, y:rp.y};
	_parent.localToGlobal(a);

	_parent[prop] = n;

	var b = {x:rp.x, y:rp.y};
	_parent.localToGlobal(b);

	_parent._x -= b.x-a.x;
	_parent._y -= b.y-a.y;
}

what and where should I change the vcam option so that it follows my character without it being centered?