Create an actor when i use left click

Game Editor comments and discussion.

Create an actor when i use left click

Postby Granlord » Sun Jan 16, 2011 5:45 pm

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... :(
Granlord
 
Posts: 9
Joined: Tue Dec 14, 2010 10:13 pm
Score: 0 Give a positive score

Re: Create an actor when i use left click

Postby Game A Gogo » Sun Jan 16, 2011 6:05 pm

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"
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Create an actor when i use left click

Postby Granlord » Sun Jan 16, 2011 6:44 pm

I now fond the problem! i manage to disable the mouse events -_- Thnx anyway! Appreciated!
Granlord
 
Posts: 9
Joined: Tue Dec 14, 2010 10:13 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron