bignono
Number of posts : 11 Age : 66 Localisation : Champigny-sur-Marne, 94500, France Registration date : 2013-03-12
| Subject: to write or draw with the mouse Sat Mar 16, 2013 10:11 am | |
| Bonjour à tous, Amis de langue anglaise, Voici un petit code qui vous montre comment écrire ou dessiner avec la souris! J'espère que cette astuce vous sera utile. Je suis français et j'utilise le traducteur en ligne babylon, donc veuillez m'excuser si la traduction est mauvaise. Néanmoins, j'espère que vous aurez compris mon message. A bientôt. Hello everyone, Friends of English language, Here a small code which shows you how to write or draw with the mouse! I hope that this tip will be useful for you. I am French and I use the translator online babylon, therefore want to excuse me if the translation is bad. Nevertheless, I hope that you will have understood my message. So long. - Code:
-
dim xd,yd,xf,yf label write timer 99:timer_interval 99,1:on_timer 99,write end
write: timer_off 99:if mouse_left_down(0)=0 then timer_on 99:return xd=mouse_x_left_down(0):yd=mouse_y_left_down(0) while mouse_left_up(0)=0 xf=mouse_x_position(0):yf=mouse_y_position(0) 2d_line xd,yd,xf,yf:xd=xf:yd=yf end_while timer_on 99 return | |
|
bignono
Number of posts : 11 Age : 66 Localisation : Champigny-sur-Marne, 94500, France Registration date : 2013-03-12
| Subject: Re: to write or draw with the mouse Sat Mar 16, 2013 10:21 am | |
| If you do not understand the code, or if you have questions, do not hesitate. This forum is there for that! You can also come to take part on the French forum which is more active. There will be certainly always somebody to answer you. | |
|