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
Moderator
14
Years of Service
Recently Online
Joined: 11th Jan 2005
Location: Adelaide
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
Moderator
14
Years of Service
Recently Online
Joined: 11th Jan 2005
Location: Adelaide
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
2
Years of Service
User Offline
Joined: 18th Sep 2016
Location:
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
9
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
16
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
Moderator
14
Years of Service
Recently Online
Joined: 11th Jan 2005
Location: Adelaide
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
Moderator
14
Years of Service
Recently Online
Joined: 11th Jan 2005
Location: Adelaide
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
Moderator
14
Years of Service
Recently Online
Joined: 11th Jan 2005
Location: Adelaide
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
Moderator
14
Years of Service
Recently Online
Joined: 11th Jan 2005
Location: Adelaide
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: 2019-05-22 04:56:46
Your offset time is: 2019-05-22 04:56:46