how can i use rawdraw to draw bullet holes (solved)

Started by timlump, Sun 14/05/2006 12:14:31

Previous topic - Next topic

timlump

i want to use the rawdraw function to draw bullet holes where i click with my SHOTGUN cursor

Ashen

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.:
Code: ags

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.)

I know what you're thinking ... Don't think that.

timlump

thanks ( you can obviously see im useless at scripting) and also at the moment I plan for ammo to be unlimited.

SMF spam blocked by CleanTalk