Search:
Type: Posts; User: kraxyk
Search:
Search took 0.38 seconds.
-
ok everything is working right now. The only problem i am having is detecting what the score is so I can have a picture change so I have this code and everything above the last //comment works. I...
-
well it seems the problem is because I am not using a duplication script and instead am putting that code on all the dropping money mc's. Do you have a duplicating random x script idea?
-
ok through your code which I modified some of the names of instances...I got it to partially work, it recognizes the hit but it restarts everything on the frame, like the objects falling flash and...
-
ok so on my frame i have just stop();
on my falling object I have all this
onClipEvent (enterFrame) {
this._y += 5;
if (this.hitTest(_root.pig)) {
this._x = 10.5;
this._y = -54.5;
}...
-
ok, I have a hitTest that is supposed to update the variable so the text of the score will go up one every time. But unfortunately, it works but it doesn't. It passes the number to the variable but...
-
like collect the falling money, that kind of game is what I am trying to achieve
-
Can anyone steer me in a direction on how to build one? Like have money graphic fall down and if it hits a wallet your score goes up by one? But it keeps looping. Is there any easy way of doing this....
-
what if I used this on an empty movie clip
onClipEvent (load) {
//moneyupdate
var scoreupdate = function () {
_root.score.text = _global.score;
_global.endcall = true;
};
var...
-
um its just my luck, its like the text just isn't refreshing
-
Thanks but, well, the game is NSFW...so it might not be a good idea to post it
-
ok I tried this and the other method mentioned and neither worked
if (_root.money.hitTest(_root.pig)) {
_global.score += 1;
}
_root.score.text = _global.score;
stop();
-
ok I have a hitTest that is supposed to update the variable so the text of the score will go up one every time. But unfortunately, it works but it doesn't. It passes the number to the variable but...
-
ok basically I'm having a lot of trouble. how would I create something like this
**NSFW**
Game Link
-
thanks unfortunately that doesn't help much. Because my problem is how do I tell it to create lots of them and at random x's. Sorta like falling snow or rain. Kinda like this coin falling. Except I...
-
ok so I would use
(Math.random(this._x)); ?
-
basically I have to figure out a way to make an mc fall from different random x corrdinates, from top and have them fall down. I think for the falling I would just use,
this._y += 5;
but I don't...
-
Ok I want to create a falling items game, but how do you code the falling movie clips? sorta like catch the money, or something like that.
-
hmm ok, it would be easier for me to walk you through it. could you upload the fla? But I have Flash MX so you would have to save it for my version.
-
well u could use something like this
on (rollOver) {
_root.btn.gotoAndStop(2);
}
and for the second frame of the button you could make the btn have its rollover image
-
I also tried on enter frame...or putting code on the frame. it just won't go
-
ok but now I have another problem I have another button a completely frame, but I can't get it to work with this code. I have tried changing the code to press. I tried putting a this in front, _root...
-
omg thank you so much now it finally works
-
ok let me try and break it down. I have a button with this code on it
on (press) {
startDrag(drag,false,-56.1,100.4,54.2,100.4);
}
on (release) {
stopDrag();
}
the numbers seam...
-
ok I have this and it didn't work. I also tried 25 for a value and that didn't work either
stop();
if (drag._x>=40) {
this.gotoAndStop(33);
}
-
oh I see I'll give that a try tomorrow
|
Click Here to Expand Forum to Full Width
|