Simple example of fireworks

Learn to use DS Game Maker by Example!

Simple example of fireworks

Postby YoshiInAVoid » September 12th, 2011, 5:23 pm

Just a simple example of fireworks in DSGM 5. Because it was requested by Pomdave.

Touch the screen to have fireworks appear!

I didn't add in Rotation since the functions from DSGM don't work, and I just can't be botherd to just use the PAlib action and type it in. :lol:

It's not done very efficiently since everytime you touch the screen it re-create the sprites, rather than placing them to the stylus position. So if you tap it (256 / 16) times then you will get a "PAlib couldn't load all of your sprites" error.

Anyway here it is, I hope you can do something good with it!

DSGMTempFireworks12302631.nds
(280.56 KiB) Downloaded 100 times
Fireworks.dsgm
(1.49 KiB) Downloaded 88 times
YoshiInAVoid
 
Posts: 1960
Joined: December 30th, 2010, 11:53 am
Location: England

Re: Simple example of fireworks

Postby Bobbyloujo » September 12th, 2011, 10:01 pm

You should rotate the sprites so that they point in the direction they are moving.
Seriously never posting again, lawlz.
jk
Bobbyloujo
 
Posts: 1295
Joined: December 30th, 2010, 8:40 pm
Location: Uh-merica

Re: Simple example of fireworks

Postby YoshiInAVoid » September 13th, 2011, 4:38 pm

I didn't add in Rotation since the functions from DSGM don't work, and I just can't be botherd to just use the PAlib action and type it in. :lol:
YoshiInAVoid
 
Posts: 1960
Joined: December 30th, 2010, 11:53 am
Location: England

Re: Simple example of fireworks

Postby Bobbyloujo » September 13th, 2011, 9:01 pm

Oh. I guess I should have read the post :P Sorry.

EDIT: The rotation actions do work. You just gotta enable rotation :P Just two extra actions:
Attachments
FireworksWithRotation.dsgm
(1.52 KiB) Downloaded 58 times
Seriously never posting again, lawlz.
jk
Bobbyloujo
 
Posts: 1295
Joined: December 30th, 2010, 8:40 pm
Location: Uh-merica

Re: Simple example of fireworks

Postby YoshiInAVoid » September 13th, 2011, 9:06 pm

No problem. It's really common for people to mis-read things here.
YoshiInAVoid
 
Posts: 1960
Joined: December 30th, 2010, 11:53 am
Location: England

Re: Simple example of fireworks

Postby becomingthebeast » October 9th, 2011, 4:21 pm

Wow!
Very nice! :)
- V.
becomingthebeast
 
Posts: 22
Joined: October 4th, 2011, 6:08 am

Re: Simple example of fireworks

Postby YoshiInAVoid » October 9th, 2011, 7:30 pm

Thanks!
YoshiInAVoid
 
Posts: 1960
Joined: December 30th, 2010, 11:53 am
Location: England

Re: Simple example of fireworks

Postby Buck_7 » October 10th, 2011, 8:06 pm

Is there a way to randomly create fireworks on the bottom screen by itself?
Upcoming games I'm working on:
  • Minecraft2DS
  • Bow Man DS
  • Bird poo!
------------------------------------------------------------------------
COOL LOOK 3D portal port for DS! http://drunkencoders.com/2013/01/dstal-advance/
needMusic?needHelp?Ask.
User avatar
Buck_7
 
Posts: 964
Joined: February 19th, 2011, 1:44 am

Re: Simple example of fireworks

Postby YoshiInAVoid » October 10th, 2011, 8:15 pm

Yes. You would replace Stylus.X with PA_RandMinMax(32, 256 - 32) and replace Stylus.Y with PA_RandMinMax(32, 192 - 32). That would be to make it appear at a random position. Use an alarm to see when to make the new firework rather than Stylus.Newpress.
YoshiInAVoid
 
Posts: 1960
Joined: December 30th, 2010, 11:53 am
Location: England

Re: Simple example of fireworks

Postby Buck_7 » October 10th, 2011, 8:31 pm

Okay, thanks!
Upcoming games I'm working on:
  • Minecraft2DS
  • Bow Man DS
  • Bird poo!
------------------------------------------------------------------------
COOL LOOK 3D portal port for DS! http://drunkencoders.com/2013/01/dstal-advance/
needMusic?needHelp?Ask.
User avatar
Buck_7
 
Posts: 964
Joined: February 19th, 2011, 1:44 am

Re: Simple example of fireworks

Postby YoshiInAVoid » October 10th, 2011, 9:34 pm

No problem. I might add support for multiple fireworks but I'm buisy shoving Zombase stuff into NitoFS and figuring out how to load it at the moment.
YoshiInAVoid
 
Posts: 1960
Joined: December 30th, 2010, 11:53 am
Location: England


Return to Tutorials & Examples

Who is online

Users browsing this forum: No registered users and 0 guests