Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Simple Animation Problem

Author
Message
Gilden
21
Years of Service
User Offline
Joined: 10th Aug 2004
Location:
Posted: 29th Mar 2005 01:28
I can figure it out. I want to make a blinking cursor using two picture files. I thought I could do it by hiding and showing the paisted pictures so it looks like they are blinking. That does not work though and whenever I use the wait command it pauses the whole program.

*I guess I have two problems. How do you use the wait key without it pauseing the whole program?

*How do you create a looping animation using two pictures?

Simple problems sorry I am such a beginner,

Gilden
Vues3d on Kalimee
22
Years of Service
User Offline
Joined: 12th May 2004
Location: NYON (SWITZERLAND)
Posted: 30th Mar 2005 20:24
so...
You have 2 pictures for your cursor...



this is NOT the whole code but the way to go (one of thousands ways)
hope this will help.

Guido
http://www.vues3d.com
Gilden
21
Years of Service
User Offline
Joined: 10th Aug 2004
Location:
Posted: 31st Mar 2005 07:21
Thankyou so very much,

I have been waiting a long time for someone to reply. I will give it a try. I will post again if I run into any more trouble.


Gilden
Gilden
21
Years of Service
User Offline
Joined: 10th Aug 2004
Location:
Posted: 7th Apr 2005 05:28
Its been a long time since I've gotten back. Nothing seems to happen. It doesn't blink. I see no time variable in your code to restrict the blinking to any number of seconds.

I'm still confused!

Gilden
D Ogre
22
Years of Service
User Offline
Joined: 19th Nov 2003
Location:
Posted: 7th Apr 2005 12:00 Edited at: 7th Apr 2005 12:09
Try this out.



If you want something else to happen while the cursor is blinking, I would take out the WAIT command so it doesn't slow the rest down.

To keep the delay for the blinking cursor and integrate code with it, you could use something like this:



I used the internal system clock for the second code snippet. I figured that it would be more accurate timing than just adding two numbers together. Although, adding two numbers together would probably work too.

I hope this helps ya.

Login to post a reply

Server time is: 2026-06-12 09:26:09
Your offset time is: 2026-06-12 09:26:09