Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: GuyLaDouche on Sun 03/06/2007 11:38:06

Title: Placing a decal upon click of a mouse
Post by: GuyLaDouche on Sun 03/06/2007 11:38:06
I'm not sure how best to ask this. Is there a way to place decals, such as bullet holes, into the wall of a room on mouseclick with it's x,y position based upon the position of the mouse, and is there a way to make this simply room dependant. I've seen this in a demo of a war game made with AGS.

Specifically, when I say 'decal,' I mean that I want to be able to see multiple bullet holes when I click the mouse multiple times, not just one moving around. I was considering making bullet holes by using game characters, but there has to be a simpler way.

Thanks.
Title: Re: Placing a decal upon click of a mouse
Post by: Ashen on Sun 03/06/2007 11:57:41
Did you try a forum search first?
You could use RawDrawImage, as suggested HERE (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=26559.0) and in more detail HERE (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=29883.0). If you found them, and the idea is no good for you, why not? (i.e. does it not work at all, does it not work how you'd like, what's wrong with the way it works ... more details means better replies.)
Title: Re: Placing a decal upon click of a mouse
Post by: GuyLaDouche on Mon 04/06/2007 06:24:06
That worked perfectly.

Sorry, I tried searching the forums, but because I didn't know anything of that command, my search was very unsuccessful. All I can say is that I looked heavily in the Help FAQ and found nothing on the subject, so I came here.

Thanks :D
Title: Re: Placing a decal upon click of a mouse
Post by: Ashen on Mon 04/06/2007 13:22:10
You're welcome, and I'll add a bit of general advice.

You possibly just need to think about your search terms more, for future questions. OK, it wouldn't occur to you to look for RawDrawImage - if you knew commands off the top of your head like that you probably wouldn't need to be asking questions in the first place. The threads I linked are two of the top three results for 'bullet holes' - which seems like a logical enough term, given the question. (The other top-three thread is this one, incidentally. Not much use for now, but now it'll be there for the next person who wants to use it.) Admittedly, I had the advantage of knowing the threads were there to be found, but I still found them on the first search I tried, without needing the command itself.
Title: Re: Placing a decal upon click of a mouse
Post by: voh on Mon 04/06/2007 17:15:11
Even better, the AGS help file has the commands you can use in it, and they're easy to understand due to the syntax and vars being explained. RawDrawImage was where I looked for it when I needed it :)