Hey Dudes!
I was wondering if anybody could give me a hand with a little game I'm making...I've done several movies before using Flash, but I've never tried to make a GAME. That's why I'm not that good on ActionScripting....Well, anyway, I'm making a point-and-click game, and I've got all the Actions Scripting I could need....except for one little code...I'll explain the problem now:
I've got this door (which is an MC) that sould open if I click on it ONLY if another MC (called "circle") has a certain value for the x axis (350). When I say "open" I mean that it plays starting from the second frame, which is an animation of the door opening. Well, I have this other button that makes the circle get those coordinates, so when I click on that button, well..you guessed, "circle" gets 350 as a value for the x axis. then, when I click on the door, it opens (as it should do). However, if I click on the door before clicking on the other button, "circle" gets 350 as it's value for x and then the door opens.... I can't understand what's going wrong with the code... well, here it is in case any of you can help me with this:
This is on the door:
onClipEvent(mouseUp){
if(_root.circle._x=350.0) {
if(this.hitTest(_root.cursor)){
gotoAndPlay("circleMC",2)
}
}
}
This is on the burron that moves the circle:
on (release) {
_root.circle._x=350.0
_root.circle._y=183.0;
}
Thanks anyway :)