/grav

By kerstt on May 16, 2007

just typ /grav
then open then click :P
i had the idea from a guy on picwin.tk and decided to make my own.

menu @gravity {
  sclick:grav 1
}
alias grav {
  if (!$window(@gravity)) {
    window -pdk0 +fxnbt @gravity -1 -1 200 450
    drawrect -nf @gravity 1 0 0 0 200 450
    drawdot @gravity 04 20 100 70
    drawtext @gravity 04 arial 10 11 60 Click to Play ->
    %grav = $iif(!$1,10,$1)
  }
  else { 
if (%_x) && (%_y) { 
      drawdot -n @gravity 1 20 %_x %_y
    }
    if ($1) {
      drawrect -f @gravity 1 0 0 0 200 450
      %__y = $mouse.y
      %_x = $mouse.x
      %ball = 0
    }
    inc %ball %grav 
    %_y = $calc($int(%__y) + %ball / 10)
    if (%_y > 405) {
      %_y = 405
      %ball = $calc(%ball * -0.7)
      drawtext @gravity 04 arial 10 $r(8,170) $r(50,350) Bounce!
    }
    %__y = %_y
    drawdot -n @gravity 04 20 %_x %_y
    drawdot @gravity
    if ($left($calc(%grav / %ball),4) != -2.4) { 
      .timergrav -m 1 25 grav
    }
  }
}
on *:close:@gravity: {
  .timergrav off 
  unset %_x %_y %__y %grav %ball
}

Comments

Sign in to comment.
guest598594   -  Aug 23, 2007

yea, i figured that out :P

 Respond  
kerstt   -  Aug 23, 2007

lolled
ok
sclick stands for single click, fcoruse it isnt for dialogs:P
and the first one, i know how to make menu\'s, you saw menu @gravity? thats for the @window not anywhere else :)

 Respond  
guest598594   -  Aug 22, 2007

nvm ur right, my bad

 Respond  
guest598594   -  Aug 22, 2007

sclick is for dialogs btw

 Respond  
guest598594   -  Aug 22, 2007

lol wasnt me, but i guess it could entertain someone for a couple minutes :P, also it seems you dont know how to make a menu

menu * {
  Gravity { grav }
}

there we go

 Respond  
kerstt   -  May 18, 2007

yay lol another \"1\" someone has to hate me.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.