Placing a decal upon click of a mouse

Started by GuyLaDouche, Sun 03/06/2007 11:38:06

Previous topic - Next topic

GuyLaDouche

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.

Ashen

#1
Did you try a forum search first?
You could use RawDrawImage, as suggested HERE and in more detail HERE. 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.)
I know what you're thinking ... Don't think that.

GuyLaDouche

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

Ashen

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.
I know what you're thinking ... Don't think that.

voh

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 :)
Still here.

SMF spam blocked by CleanTalk