<[ Delph Inc. ]>
I've been thinking of this for a while and I think Stefan should implement the onMouseOver, onMouseDown, onMouseMove etc... commands into Graal.
For example:
if (onmouseover.x<10,20>&&onmouseover.y<10,20>) {
changeimgpart 1,x,y,w,h;
}
That would make it so as soon as your mouse goes over the image with an index of 1, it would change the images x,y,w,h.
For those of you who don't know the x and y is the start of a box of a certain part of an image you want to select and the width and height determines how large the box will be.
These commands would be good for many things.
I first came up with the idea a while ago when I was actually trying to see if he had already done this because Stefan made the right click thing on the players.
*NOTE: I was just in my early days of scripting.*
This would be good for a few things mentioned already in these forums and things which are already in use.
-Moving furinture would be a sinch with this. By just clicking and dragging the item to where you want it.
-The railroad tracks on 2k1 where you could just click on the tile you want, which is already displayed on the screen and then place the tile you clicked on to where you want it.
I know there would be many problems and bugs with this, but Stefan could probably disable the onMouse commands to not work with others where there could be problems.
Galactica (Dolphonia II)
Under Construction (Sort of)
</[ Delph Inc. ]>
*Edit Note* Now I come to think of it, you could probably even create your own levels while actually playing the game. But then you probably wouldn't be able to save the level. You could still upload the text part of a level to a server string or something.
Please everybody, just think of all the posibilities and new things it would bring to graal.