I want to be able to drag the mushroom queen to to various different groups of mushroom, (as you can see in the picture) when the wrong group is targeted you will be greeted with a "try again" message until the correct batch of mushrooms is hit and then you get your ending- game over- you win scene!
But I can't do it!
I have a tutorial file in which I made a cat and a fish, the fish could be dragged around the screen and when it was released over the cat the cat would meow and text appeared, I have tried to copy this code into the above mushroom scene, however nothing happens? I changed the instance names of course but still nothing!
what am I going to do?
here is the code i tried to use:
queen_mc.onPress = Function() {
startDrag(this);
}
queen_mc.onRelease = Function()
{
stopDrag();
}
this is the code off the website: (is it because one of these } isn't at the start of the script?)
key.onPress = function() {
this.startDrag(true);
updateAfterEvent();
};
key.onRelease = function() {
this.stopDrag();
if (this.hitTest(lock)) {
gotoAndStop("room1");
this.startDrag(true);
updateAfterEvent();
};
key.onRelease = function() {
this.stopDrag();
if (this.hitTest(lock)) {
gotoAndStop("room1");
No comments:
Post a Comment