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.

AppGameKit Classic Chat / New Year Fireworks Generator

Author
Message
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 1st Jan 2017 02:01 Edited at: 12th Apr 2018 20:52
My first attempt at using particles so I created this simple routine that sets off 5 particles at random timing
I added some text (Happy New Year) that just fades out and back in



Still lots to learn about particles but I did a search on the forum and only found 2 such posts with fireworks
Which helped me to adapt this one. I hope people find the routines useful. Please feel free to add any changes
and share on this post.

Thanks I LOVE AGK
Happy New Year Everyone
fubar
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 1st Jan 2017 06:09
Click the below link if you want to see it in action without copy and pasting code
http://users.tpg.com.au/subarpk/fire/Fireworks2.html
fubar
damothegreat
User Banned
Posted: 1st Jan 2017 07:19
Hello and welcome

A big well done to you on your first little project - looks well cool.

and Happy new year to you all too - hope 2017 bring you joy of AGK
Using Tier 1 AppGameKit V2
Started coding with AMOS
Anything is possible if put mind to it
Harlequin
14
Years of Service
User Offline
Joined: 22nd Mar 2010
Location: Melbourne (AU)
Posted: 4th Jan 2017 12:28
That's pretty cool fubarpk.
and belated Happy New Year
It\'s late, I\'m tired, out of coffee and now I\'m wet.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 4th Jan 2017 12:45
You should submit this to the AGK Coding challenge, the current subject is...particles
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 4th Jan 2017 13:43
Thanks Batvink the AppGameKit coding challenge on particles is looking pretty empty ATM hopefully more people will post stuff on the last weekend.
I think the problem is most people read the first few pages and don't check the last page

After a terrible hard drive crash I have been sharing more of my source which I will continue to do as I feel the forums have giving me so much
and I want to give back to the AppGameKit community. Ive got a few projects on my TODO list.
fubar
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 5th Jan 2017 02:39 Edited at: 12th Apr 2018 20:52
it don't look as good as the original but by using render to image and some clearscreen commands


which does seem to give it the effect of flare but a very flickery approach
fubar
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 5th Jan 2017 11:01 Edited at: 12th Apr 2018 20:53
Well I got it semi clearing the background by having a black particle set it the same location 50 milliseconds later
effectively rubbing out the actual firework particle emitter and giving the firework a flare effect



It doesn't rub out all that good as it leaves minor traces behind but it does show you the desired effect
I still prefer the first as it was simple and didn't leave stuff on the screen.
fubar
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 11th Jan 2017 10:26 Edited at: 12th Apr 2018 20:53
Batvink made a minor tweak to the above code which gave the effect I was really after

fubar

Login to post a reply

Server time is: 2024-04-18 13:37:01
Your offset time is: 2024-04-18 13:37:01