You need a Grounds Gold Account to post on the NG BBS!If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!
At 9/3/09 12:30 AM, Luis wrote:
You should see pico holding money if its working correctly. Are you sure you enabled them? and turned off debug mode and other options inside the api page?
Maybe take a screenie of your settings. The most common mistake people make is they left something off or one of your settings are wrong
i didn't touch anything i just activated name and flash ads
and where do i see Pico?
At 7/24/09 12:44 PM, kfc23456 wrote:
im trying to making a sprite shooter but theres a problem
i tried to make my character shoot bullets, but whenever the bullet touches the enemy the Player dies
the bullet is just another MC inside the Frame that motion tweens quickly across the screen and i tried giving the bullet a different instance name and using that, but it doesnt work
and so i can shoot multiple bullets i heRD yhu have to use linkage or _parent. and _child.
i need help because im making a flash and its starting to annoy me i need help ,n
i tried to put movie clips in 1 big movie clip
im trying to making a sprite shooter but theres a problem
i tried to make my character shoot bullets, but whenever the bullet touches the enemy the Player dies
the bullet is just another MC inside the Frame that motion tweens quickly across the screen and i tried giving the bullet a different instance name and using that, but it doesnt work
and so i can shoot multiple bullets i heRD yhu have to use linkage or _parent. and _child.
At 7/21/09 05:15 PM, kfc23456 wrote:
this.gotoAndPlay(17) and (18);
Someone correct me if I'm wrong, but you can't do that, and why would you want to
i don't get any compiler errors but it doesn't work either
i did it because when i hold left Yoshi stays in one frame and moves around the screen standing without moving his feet
At 7/21/09 03:42 PM, kfc23456 wrote:
whne i put var ; bool it says syntax error
then when i put the key shift thing i was told to put it kept saying syntax error
It's var bool : Boolean, not var ; bool. Also, post the errors, and the script you have.
CODE ON FRAME:
stop();
hp = 100;
energy = 2000;
enehp = 100;
eneenergy = 2000;
CODE ON CHARACTER
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
_xscale = -200;
this._x -= 15;
this.gotoAndPlay(17) and (18);
_root.energy -= 1;
} else {
if (Key.isDown(Key.RIGHT)) {
this._x += 15;
_xscale = 200;
this.gotoAndPlay(17) and (18);
_root.energy -= 1;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE)) {
if (_root.energy>20) {
this.gotoAndPlay(30);
}
_root.energy -= (20);
} else {
if (Key.isDown(Key.SPACE)) {
_root.energy++;
this.gotoAndPlay(46);
}
}
}
onClipEvent (load) {
if (_root.energy<0) {
_root.energy = 0;
}
if (_root.hp<0) {
_root.hp = 0;
}
}
At 7/21/09 12:20 PM, kfc23456 wrote:
i need some more help. when i hold a KEY like SHIFT Flash says that when i hold it its like im repeatly pressing SHIFT how can i make it so no matter how long i hold shift flash counts it as 1 key press?
You could have a boolean that can only be used once when the key initially goes down and resets when you release the key, or some sort of onKeyDown listener that checks (don't remember my AS2 functions, but I'm pretty sure that was how it worked).
thats confusing... you mean like
if(Key.isDown(Key.SHIFT)){
False;
}
or something like that
because its really frustrating
i need some more help. when i hold a KEY like SHIFT Flash says that when i hold it its like im repeatly pressing SHIFT how can i make it so no matter how long i hold shift flash counts it as 1 key press?
where movieclipname is just the name of your movie clip, -500 is an arbitrarily large negative number, and _x and _y are the x and y coordinates of the movieclip.
what is your experience in programming? are you just starting with flash?
i started long ago but then stopped and forgot everything, as for the conditions i did that and as soon as i started the movie the variable was 0 when i put (variable)=100;
and it still went to negatives
im trying to make an RPG and im practicing and stuff,but i don't know how to make my variables stay at 0 when it reaches zero like when my character loses health it doesn't go off to -(blank) and when i put
if(_root.(variable) <1){
_root.(variable)=0
}
it starts off with 0
and i want to make it so when my character does reach 0 health to go to a frame where he dies
At 7/8/08 04:34 PM, kfc23456 wrote:
my favorite yoshi game is yoshi's island for the gameboy advance
i like the black yoshi
my favorite move is the ground pound