Kisekae Chat Board
 


welcome ghostie!!

by (no login)

 
hi ghostie! happy to meet you!

okay, blinking can be done either with timer() or randomtimer(). these do more or less the same thing, but randomtimer will make your eyeball thing blink at a randomized time, which looks more natural. if you want it to look mechinical, then you want to use timer()

here it is with randomtimer

let's pretend yout .cels are called blink1.cel, blink2.cel, blink3.cel, and blink4.cel.

in the beginning of your code, under ;@initialize(), you will need to type

;@unmap("blink1.cel")
;@unmap("blink2.cel")
;@unmap("blink3.cel")
;@unmap("blink4.cel")

that will mean that none of them show up when the doll loads.

then, under ;@begin() , you want to start your timer.

like this

;@randomtimer(1,1000,5000)

that means that this is timer #1, and that it will go off anytime between one second (1000 milliseconds) and 5 seconds (5000 milliseconds) after the doll "begins."

then you want to type

;@alarm(1)
;@map("blink1.cel")
;@timer(2,200)

that means that the things directly below it will happen when alarm 1 goes off. here, it maps the first blinking .cel and then tells timer number 2 to go off after 200 milliseconds, or 1/5 second.

i will type out the rest of the code just to continue

;@alarm(2)
;@unmap("blink1.cel")
;@map("blink2.cel")
;@timer(3,200)

;@alarm(3)
;@unmap("blink2.cel")
;@map("blink3.cel")
;@timer(4,200)

;@alarm(4)
;@unmap("blink3.cel")
;@map("blink4.cel")
;@timer(5,200)

;@alarm(5)
;@map("blink3.cel")
;@unmap("blink4.cel")
;@timer(6,200)

;@alarm(6)
;@map("blink2.cel")
;@unmap("blink3.cel")
;@timer(7,200)

;@alarm(7)
;@map("blink1.cel")
;@unmap("blink2.cel")
;@timer(8,200)

;@alarm(8)
;@unmap("blink1.cel")
;@randomtimer(1,3000,5000)

notice how i end again with randomtimer 1-- that will start the cycle all the way back from the beginning. unless oyu want to re-start the cycle, don't ever re-use a number. also notice that the second time, i did 3000 for the shortest time-- you don't want your doll to blink again immediately!

i hope that helps


tea



Posted on Feb 2, 2002, 11:12 PM
from IP address 66.108.105.52


Respond to this message

Return to Index
Responses

  1. thanks a lot!. ghostie, Feb 3, 2002, 6:43 PM

Create your own forum at Network54
 Copyright © 1999-2009 Network54. All rights reserved.   Terms of Use   Privacy Statement