delete topic plz

Talk about making games.

delete topic plz

Postby stevenp » Sun Dec 30, 2007 2:03 pm

delete topic plz
Last edited by stevenp on Wed Feb 20, 2008 11:36 pm, edited 1 time in total.
User avatar
stevenp
 
Posts: 403
Joined: Sat Dec 22, 2007 12:49 pm
Location: canada, ontario
Score: 16 Give a positive score

Re: HUGE mouse problem... WTH!!!

Postby MrScience101 » Sun Dec 30, 2007 2:43 pm

if you want to send me your ged and data files when you get a chance I will have a look and see if I can modify it so it can work.
User avatar
MrScience101
 
Posts: 115
Joined: Tue Mar 20, 2007 9:52 pm
Score: 13 Give a positive score

Re: HUGE mouse problem... WTH!!!

Postby Freddy » Sun Dec 30, 2007 3:12 pm

Try this. Instead of having to click the mage to create the fire ball, create an actor, and add a draw actor event -> visibility state -> dont draw but enable events. Then make another draw actor event, and choose follow cursor (or mouse whatever). Add a mouse button down event -> script editor:
fire = fire + 1;
Then go to your mage and add a draw actor event -> script editor:
if(fire>0)
{
create actor fireball relative to creator bla bla bla...
}
Then, go to your fireball, add a create actor event, go to script editor, and type:
fire = fire - 1;
Then you should be done. This will enable you to click anywhere on the screen to create a fireball. NOTE: Keep the code that makes the fireball move towards the mouse. If you keep it, you will be able to shoot to any place on the screen. This just might fix the glitch I hope this is what your looking for :D
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron