How can I make a flashing circle?

About advanced scenes, and the Thyme scripting language used in Algodoo.

How can I make a flashing circle?

Postby KarateBrot » Sun Nov 22, 2009 9:59 pm

I want to spawn a circle that you can see for a very short time and after that short moment it disappears.

I spawned a circle with density := 0 but then it gets deleted too fast and you can't see the circle. so is there a method to let it flash up a moment before it disappears?
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: How can I make a flashing circle?

Postby blahblah200 » Sun Nov 22, 2009 10:37 pm

After a quick search on the phunb... doob... algobox I found this
Rating: rated 7.2
Filesize: 27.27 kB
Comments: 2
Ratings: 7
download
A search... that was all that was needed :lol:
Image<-- Made with GIMP
User avatar
blahblah200
 
Posts: 61
Joined: Tue Sep 01, 2009 11:33 am
Location: Somewhere over the rainbow...

Re: How can I make a flashing circle?

Postby Kilinich » Sun Nov 22, 2009 10:56 pm

KarateBrot wrote:I want to spawn a circle that you can see for a very short time and after that short moment it disappears.

I spawned a circle with density := 0 but then it gets deleted too fast and you can't see the circle. so is there a method to let it flash up a moment before it disappears?


Rating: rated 6.1
Filesize: 20.34 kB
Comments: 4
Ratings: 3
download
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: How can I make a flashing circle?

Postby KarateBrot » Sun Nov 22, 2009 11:13 pm

i know of your fading circles scene but a problem is that it doesn't work anymore if there is more than 1 circle because of a weird bug.

[edit]
ok i solved the problem. it was caused because i used OnHitByLaser to spawn the circle. with OnHitByLaser and OnLaserHit the circle gets deleted too fast. with onCollide it lasts 1 simulation step before it gets deleted. that was the problem.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 3 guests

cron