Let me rephrase a bit. Your script looks like it will work a bit but I'm not making a game. I'm making a flash video.
Code:
//if ( left button is pressed ) < need onframe script //{ if ( mario.x < (level.x+screen.width/2) ) { mario moves left } else { level moves right } //} //if ( right button is pressed ) < need onframe script //{ if ( mario.x > (level.x+level.width-screen.width/2) ) { mario moves right } else { level moves left } //}
Also, if your going to use scripts, I hope I can just copy and paste them.
edit: Actually scripting might not even be needed. Just answer this question if you can.
How do I figure out the speed for the object when using motion tween?
I'm using 24 fps...if Mario moves 32 pixels in 5 frames...what's his speed?
I could just use a calculator if scripting is a little too tricky.
Bookmarks