Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: timlump on Sun 14/05/2006 12:14:31

Title: how can i use rawdraw to draw bullet holes (solved)
Post by: timlump on Sun 14/05/2006 12:14:31
i want to use the rawdraw function to draw bullet holes where i click with my SHOTGUN cursor
Title: Re: how can i use rawdraw to draw bullet holes where i click
Post by: Ashen on Sun 14/05/2006 12:55:16
Have you tried yet? If so, what have you tried and why isn't it what you want?

You might be better using RawDrawImage, e.g.:

RawDrawImage(mouse.x+GetViewportX(), mouse.y+GetViewportY(), SPRITE);

(Where SPRITE is the spriteslot of your 'bullet hole' graphic.)

This would probably go in on_mouse_click, in a condition to check if the shotgun is being used (I'd imagine you have something to check & lower ammo? The same place would do for this.)

Title: Re: how can i use rawdraw to draw bullet holes where i click
Post by: timlump on Sun 14/05/2006 16:19:55
thanks ( you can obviously see im useless at scripting) and also at the moment I plan for ammo to be unlimited.