Page 1 of 1

Create an actor when i use left click

PostPosted: Sun Jan 16, 2011 5:45 pm
by Granlord
Can some one be kind to tell me how to create an actor when ever i use left click on the screen. Would be really nice!
I have search the forum now for some time and can not find anything... :(

Re: Create an actor when i use left click

PostPosted: Sun Jan 16, 2011 6:05 pm
by Game A Gogo
create a filled region actor and make it all over the screen, make sure it's above everything else in zdepth, then add a mouse down event - > script editor:
Code: Select all
CreateActor("Actor","Animation",(none),xmouse-xscreen,ymouse-yscreen,TRUE);
just make sure x is "xmouse-xscreen" and y is "ymouse-yscreen"

Re: Create an actor when i use left click

PostPosted: Sun Jan 16, 2011 6:44 pm
by Granlord
I now fond the problem! i manage to disable the mouse events -_- Thnx anyway! Appreciated!