;

PDA

Click to See Complete Forum and Search --> : Is there a major problem in ActionScript or am I being an idiot?


marinebro0306
09-02-2005, 12:02 AM
I was experimeting with gravity in KM, and I cannot make a ball fall faster and faster using ActionScript.

My code:
onClipEvent(load){
speedX = 5;}

onClipEvent(enterFrame){
this._x += speedX;}

The code is inside a MC of a ball.

Any ideas???
From what I can see, nothing is wrong.

necromanthus
09-02-2005, 04:36 AM
onClipEvent(load){
speedY = 0;
}

onClipEvent(enterFrame){
speedY += 0.5;
this._y += speedY;
}

p.s.
In a 2D environment, gravity is 0Y related

cheers

marinebro0306
09-02-2005, 07:39 AM
p.s.
In a 2D environment, gravity is 0Y related

cheers


Yeah, I know. I was just testing it out anyway.

Ultra Pulse
09-02-2005, 02:03 PM
Since I got an AS book, a small one(I don't need a bible) It has that code in it, And it's the buggiest thing there the ball goes from one side to the other on random.

vanbao
09-08-2005, 04:59 PM
Hi, I am a newbie here and I am trying to get some help. I am trying to put together a short slide show compose of several pictures. The transition between each picture (frame) will vary and there should be a short time delay between each frame. I am evaluating KoolMoves for now and can not seem to be able to this. Can some one please help me.

Thanks.
Vanbao

tmoore935
09-08-2005, 05:08 PM
Hi, I am a newbie here and I am trying to get some help. I am trying to put together a short slide show compose of several pictures. The transition between each picture (frame) will vary and there should be a short time delay between each frame. I am evaluating KoolMoves for now and can not seem to be able to this. Can some one please help me.

Thanks.
Vanbao

I would have started a new thread for this, but attached is a pic of were the tween settings are. You can set the tweens for each frame. Or change it to seconds. The uploaded file is in monochrome for uploading size.