Search:
Type: Posts; User: Degraiver
Search:
Search took 0.02 seconds.
-
So I've drawn a triangle and want it to rotate with the mouse. If this isn't possible please let me know.
import flash.display.MovieClip;
addEventListener(Event.ENTER_FRAME, drawShape)
var...
-
Perfect! thank you. I didn't know I could call functions like that. You have set me free fruitbeard! Thank you.
Solved.
-
function createDmg(e) {
var duck: enemydmg = new enemydmg;
duck.name = "duck";
addChild(duck);
duck.x = enemy.x
duck.y = enemy.y
duck.flyholder.flydmg.text = hdmg;
}...
-
nvm i figured it out.
the problem was the display.label[i].visible
should have been display["label"+i].visible
-
Getting straight to the point this is what i want to do:
for (var i:Number=0; i<28; i++)
{
if (isMap[i] == 1)
{
display.label[i].visible = true;
}
else
-
This is how I learnt:
http://www.flashkit.com/tutorials/Interactivity/Control_-mike-1218/index.php
-
So i have this Random number generator that looks like this
O-O-O-O-O []
| | | | | []
O-O-O-O-O []
| | | | | []
O-O-O-O-O []
| | | | | []
O-O-O-O-O []
-
Well I'm no expert but I'm pretty sure this._x and this._y gets the borders of the object and not just the area of the shape itsself. Most platformer games use this for their floors so they can have...
-
You could create a hitbox inside any of these objects and make the hitbox anysize you want. That way you can control where you want objects to be hit and not.
ooooooooo
o .|. o
o---|---o...
-
ok... I dont know what you wanted to look at so Im placing mob, and the Duplicater.
Well here is the Mob's scripting. Its the object being duplicated.
Some of the vars arent being used, but I...
-
well _root.mobList is _level0.mob1 which of course you know is the root command, but to check the name of the mob I cant use the same list so I had it creat a second list that only has the name mob1...
-
attachMovie got way too complicated for me so i went back to duplicateMovieClip and I actually got it to work, the problem was
(_root.mobList[i].hitTest(this)) was wrong and i switched it to ...
-
Well I wanted monsters to spawn at the top of a mountain, and I wanted the hero to run up the hill to fight the monsters, and Vica versa.
-
try using:
if(this.hitTest(_root.star._x,_root.star._y,true){
do this
}
"this" being what ever it is you wanted to be hitting it.
-
=D no uphill coding for me. Thanks i dont wanna spend too much time on this.
-
Awesome. I got it to add with attachMovie, but it has no script. Do I make a external script for it? Or how can I just copy the current script of the original into the copy. cause ive used _root.mob,...
-
well if its a button you can make the hover tab object a different color, but Im not really sure what you mean.
-
You could also use the Key code:
if(Key.isDown(37)) {
do this
}
though it will continuiously do that action unless you lock it up once pressed, I usually do this.
if (Key.isDown(37)) {...
-
Hmm Ive been trying to work with this attachMovie thing, but it doesnt seem to be working....
mob.attachMovie("mob1","mob"+ad,ad,this);
Thats how its suppose to be setup right?
idname = mob1...
-
have you tried
if(this.hitTest(_root.fallingobject)){
do action;
}
this of course would be in the scrolling object.
-
Oh? I thought:
if (_root.ground.hitTest(this._x, this._y, true)) {
tells the object its borders.
So how do I tell the object its slope?
-
Thanks. This Helps kinda. With this the original wont generate unnecessary scripts, but the duplicates still cant detect these codes for some reason.
-
add one more } is what i believe Johnny was trying to say.
-
As the title says, I have an object moving downhil just fine but instead of moving uphill it will move through the hill.
How do I make it move along the uphill slope?
onClipEvent (load) {...
-
is calculated a _root. value or inside a movieclip?
|
Click Here to Expand Forum to Full Width
|