indy-like label

Started by fanton, Wed 03/03/2004 01:01:05

Previous topic - Next topic

fanton

yes, well, i think the title describe it all. in indiana jones fate of atlantis (i hope i spelt it right) which is indy 4 you get the classical menu of "look at" "smile to" "begin with" etc... well, not exacly, but you get my point. anyway, let me get back to the main idea...so, as I was saying in indy 4 you have a strange "moving-above-the-cursor" type of text similiar to a windows tooltip except that is moves with the mouse and blinks. how would I make such a thing?

it is probably a loop of some sort where the mouse coordinates are always updated and the text is moved as the mouse is moved. i just need an ideea or two of how to implement that.


fanton

#2
thankee!

hehe. me comparing to SimB i did not even try to get it work all by my alone; rather, i asked you. won't do that again in a hurry....


----> I added this :

I looked trough the manual and I did not find any functions that deal with double-clicks. If I want, for example, single click for Left Mouse Button to make the character move to mouseposition and Double-Click LMB to make the character look at hotspot.

I might probably have to make the double-click myself, I think

on_mouse_click(LEFT)

probably IsButtonDown(LEFT)

i was trying to use a while loop and an if statement but i realised that some computers are slower than others therefore one double click on one system can be almost a drag in another. i was trying to use a timer to count how much time between to clicks and if lest than the required time then process as a double click. i might have to use go to, continue.

Is there another way?

I am trying to simplify the menu to make it from mouse + screen and the inventory, well I have to think about that but should be something simple and fast. more space for the graphics, and less cumbersome.

SMF spam blocked by CleanTalk