Wipe a Window??

Started by , Sat 21/04/2007 20:15:35

Previous topic - Next topic

pirates

Is there a way of clicking on a window, that takes you to a screen so that you have to use your cloth to wipe it clean?


Dan_N

Well, you can make a GUI button and then put in it's script cEgo.ChangeRoom(RoomX,X,Y) but I have no ideea how to solve that wiping thing o.O

SupSuper

You could have a "window" room with a lot of hotspots that the player has to drag over to "clean", and then check when all the hotspots are "clean".
Programmer looking for work

pirates

Quote from: SupSuper on Sat 21/04/2007 21:38:45
You could have a "window" room with a lot of hotspots that the player has to drag over to "clean", and then check when all the hotspots are "clean".

I think i will do that unless someone else comes up with an Idea.

Mr Flibble

Do the rawdraw functions have support for filling the screen and then removing, for instance, circles around the mouse? I know you can could rawdraw a circle but can you rawdraw an.. uncircle, maybe?
Ah! There is no emoticon for what I'm feeling!

SupSuper

Quote from: Mr Flibble on Sat 21/04/2007 21:56:53
Do the rawdraw functions have support for filling the screen and then removing, for instance, circles around the mouse? I know you can could rawdraw a circle but can you rawdraw an.. uncircle, maybe?
You could always use a "fixed color window" and RawDraw with the window's color, but you'd still need a way to detect if the player has "RawDrawed all over the window", thus my suggestion for hotspots.
Programmer looking for work

Dan_N

Either way, this would be a nightmare to code...

CodeJunkie

Perhaps imagine the window as a grid of squares (or rectangles) and make a 2d matrix for the cleanliness of each part of the window.  Have a section in repeatedly_execute to see where the mouse is moving and what matrix position it is in to update the matrix.  Make particularly dirty areas into objects that change graphic as the window is cleaned.  The window is cleaned when, for example, the matrix contains all 0's.

SMF spam blocked by CleanTalk