development > help

Move sprite around another with mouse


Hi everyone, first time posting here. I've been looking around the forums for a while but i haven't found something quite specific to my problem. My problem is the following:

I want to have a sprite that moves, following the mouse, around another static sprite. Think of it as a "shield" that moves to protect the center sprite from projectiles. The closest thing i can think of now is the arm movement from the Madness flash games. The "shield" should only move in a certain radius thats always at the same distance from the center sprite.

Any thoughts?


[0] Message Index

Go to full version