[Resolved] How to make an object re-appear at a different position after it is killed

Suppose I have a cat and a mouse on screen.
Say mouse is at point A.

Upon clicking the mouse, it comes close to the cat, and the cat eats the mouse. After the mouse is eaten, I want it to re-appear at point A again, and the above process can be repeated.

I tried using transition.to with alpha 1 to make the mouse fade in, but it does not re-appear at position A.

how can i do this?

Thanks. [import]uid: 175611 topic_id: 31528 reply_id: 331528[/import]

when mouse hits cat, reset the x/y-coordinates

if mouseHitsCat == true then -- assuming mouseHitsCat is your hit test method theMouse.x, theMouse.y = 100, 100 end [import]uid: 70635 topic_id: 31528 reply_id: 125981[/import]

That worked. Thanks a lot :slight_smile: [import]uid: 175611 topic_id: 31528 reply_id: 126090[/import]

when mouse hits cat, reset the x/y-coordinates

if mouseHitsCat == true then -- assuming mouseHitsCat is your hit test method theMouse.x, theMouse.y = 100, 100 end [import]uid: 70635 topic_id: 31528 reply_id: 125981[/import]

That worked. Thanks a lot :slight_smile: [import]uid: 175611 topic_id: 31528 reply_id: 126090[/import]