Hi!
I'm new to this forum and to Director but I have an urgent question.
I want to be able to click on a sprite, and after that I want to click on another sprite and the first sprite must "jump" to the location of the second sprite.
The code I have so far is capable of clicking on a sprite but the sprite jumps to the second sprite without clicking on the second on. I know this is because I iserted the sprite number (1) in it.
Maybe it gets a bit more clear when I just give you the code I have so far
property pThisSprite
on beginSprite me
set pThisSprite = sprite(me.spriteNum)
end beginSprite
on mouseUp me
sprite(pThisSprite).loc = sprite(1).loc
end
So I dont have the chance to click on the sprite it supposed to jump to.
Any help will be very great!
Thanks in advance!
Joost Tibben
I'm new to this forum and to Director but I have an urgent question.
I want to be able to click on a sprite, and after that I want to click on another sprite and the first sprite must "jump" to the location of the second sprite.
The code I have so far is capable of clicking on a sprite but the sprite jumps to the second sprite without clicking on the second on. I know this is because I iserted the sprite number (1) in it.
Maybe it gets a bit more clear when I just give you the code I have so far
property pThisSprite
on beginSprite me
set pThisSprite = sprite(me.spriteNum)
end beginSprite
on mouseUp me
sprite(pThisSprite).loc = sprite(1).loc
end
So I dont have the chance to click on the sprite it supposed to jump to.
Any help will be very great!
Thanks in advance!
Joost Tibben