To move an actor with the mouse, you can use follow mouse on create actor. Add a mouse button down on a following actor (if your cursor actor has lots of clear bits it may be best to have a filled-region parented to it and use the region to catch clicks) and send activation event to the actor you want to shoot. You can right click and add an activation event but I prefer the function because you can send it to all clones. In the actor that recieves the event, add activation event->filled-region->create actor->shot. If you want to use different mouse buttons, before you send the activation event, set a variable (ie. 0 for leftclick, 1 for rightclick, 2 for middle) and have the recieving actor say
- Code: Select all
if(mouseSignal==0)
{
//code for left button;
}
else if(mouseSignal==1)
...