Tuesday, February 24, 2009

Making Main Character's Eye Twitch

Hey, all! As this seems to be the first posting on our blog, I would like to say a few things about the sort of game this blog is for. Our developer has told us that it's going to be a third person shooter game, and that we're going to use Greenfoot to build it. A little stick figure guy will run around shooting monsters. Mr. Developer will be able to tell you more when he posts.
On to the subject of this post. So, I had the idea of creating an animated .gif file of the guy with his eye twitching slowly, another one with his eye twitching faster, and so on. Then, have a bit of program that will look at the number of monsters killed, (probably stored in a variable named, 'monkill') find out if the variable equals a certain number, then change the .giff file to the faster twitching animation. So the code will probably look something like this:
public wordIcan'tremember{
if {
monkill = 5;
}
then{
setImage("twitchFaster.gif");
}

3 comments:

  1. Interesting, seems like a good idea and easy enough, that's something we should do after we get the game started and running a little. Looks really funny.

    ReplyDelete
  2. There are some natural remedies that can be used in the prevention and eliminate diabetes totally. However, the single most important aspect of a diabetes control plan is adopting a wholesome life style Inner Peace, Nutritious and Healthy Diet, and Regular Physical Exercise. A state of inner peace and self-contentment is essential to enjoying a good physical health and over all well-being. The inner peace and self contentment is a just a state of mind.People with diabetes diseases often use complementary and alternative medicine. I diagnosed diabetes in 2000. Was at work feeling unusually tired and sleepy. I borrowed a glucometer from a co-worker and tested at 760. Went immediately to my doctor and he gave me prescibtion like: Insulin ,Sulfonylureas,Thiazolidinediones but Icould not get the cure rather to reduce the pain abd brink back the pain again. I found a woman testimony name Comfort online how Dr Akhigbe cure her HIV  and I aslo contacted the doctor and after I took his medication as instructed, I am now completely free from diabtes by doctor Akhigbe herbal medicine.So diabetes patients reading this testimony to contact his email     drrealakhigbe@gmail.com   or his Number   +2348142454860   He also use his herbal herbs to diseases like:SPIDER BITE, SCHIZOPHRENIA, LUPUS,EXTERNAL INFECTION, COMMON COLD, JOINT PAIN, EPILEPSY,STROKE,TUBERCULOSIS ,STOMACH DISEASE. ECZEMA, PROGERIA, EATING DISORDER, LOWER RESPIRATORY INFECTION,  DIABETICS,HERPES,HIV/AIDS, ;ALS,  CANCER , MENINGITIS,HEPATITIS A AND B,ASTHMA, HEART DISEASE, CHRONIC DISEASE. NAUSEA VOMITING OR DIARRHEA,KIDNEY DISEASE, WEAK ERECTION.,PAINFUL OR IRREGULAR MENSTRUATION.Dr Akhigbe is a good man and he heal any body that come to him. here is email    drrealakhigbe@gmail.com    and his Number +2348142454860.

    ReplyDelete
  3. Super-Duper site! I am Loving it!! Will come back again, Im taking your feed also, Thanks https://twitchviral.com/

    ReplyDelete