At 2/18/06 03:20 PM, Newsdee wrote: That being said, it's easy to make your own bytecode interpreter for images. Just grab every 2 characters in a hex string and convert them a single byte...
I think I know what you mean, I'm just not hardcore enough to know exactly how to do it >=)
Still, I'm not sure I would want to do it even if I knew. =P
At 2/18/06 03:25 PM, Rantzien wrote: Still, I'm not sure I would want to do it even if I knew. =P
It's very useful to get any kind of binary data into Flash. Of course, there's the caveat that you have to interpret the data yourself. [note: I'm not talking about the __bytecode__ command here, it cannot get dynamic strings as an argument].
I use binary interpreting for my emulator (obviously), but it can also have simpler uses, like storing data in a smaller format than XML.
At 8/29/06 01:39 PM, Cross-Halo-X wrote: the only reason i came here is becouse your said titbits :D
wow, congrats on bumping a 6 month old topic...
At 11/23/05 03:23 PM, cherries wrote: the stop;
stop;
really useful for menus :D
I'm not being sarcastic
you mean stop(); ?
=\
from: AS noob
im making a standerd mario type game but i cant figure out lots of stuff. my main problem is my characters movement. he has 4 frames in him, the first 1 is him standing, the second is him moving walking right, the third is him walking left, and the fourth is him using his shield. i set the 2nd frame to the right key, the third to the left key, and the 4th to the down key. heres the code i got:
onClipEvent (load) {
moveSpeed =0;
}
onClipEvent (enterFrame) {
if (Key.isDown (Key.RIGHT)) {
this._x += moveSpeed;
}
else if (Key.isDown (Key.LEFT)) {
this._x -= moveSpeed;
}
}
onClipEvent(enterFrame){
if(Key.isDown(Key.LEFT)){
gotoAndStop(3);
}else if(Key.isDown(Key.RIGHT)){
gotoAndStop(2);
}else if(Key.isDown(Key.DOWN)){
gotoAndStop(4);
}
}
onClipEvent (load) {
grav_y = 0;
jumping = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP) && !jumping) {
grav_y = 12;
jumping = true;
}
if (jumping == true) {
grav_y -= 1;
if (grav_y<=-10) {
grav_y = -10;
}
this._y -= grav_y;
}
if (_root.ground.hitTest(this._x, this._y+45, true)) {
grav_y = 0;
jumping = false;
}
}
(dont think im wierd cuz the movement speed is 0, some of u might understand but im not gonna explain)
my problem is when i start the game, the character is standing, but when i walk either way, he starts walking but when i release the key, he doesnt stop. he cant get back to the standing position. the same goes for using the shield, he cant stop using it.
another problem is i cant get any other platforms into the game besides the ground! how do i do that?
ANOTHER problem is i dont know how to do any A.I. bots or how to get them to attack you and make what they throw or shoot hurt you seperately.
i would also like to know how to make a gun turret.
i need to know how to do good hittist stuff. like, on a mario game, when he hits a block on the BOTTOM he stops jumping any higher and doesnt go through it, and the block bounces up, but when he jumps and hits the SIDE of it, he doesnt go through it, stops jumping, and the block DOESNT bounce up, also when he jumps on top of it, he lands on it and it doesnt bounce
HELP!!!