The Daily Click ::. Forums ::. Klik Coding Help ::. Ring of bullets??
 

Post Reply  Post Oekaki 
 

Posted By Message

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
4th March, 2013 at 04/03/2013 14:18:40 -

Hi

need a little advice as to how to progress an idea i have, I really want an enemy in my game to shoot a ring of bullets.

What i was thinking is to have an invisible holder in the middle that is actually shot from the enemy and then using loops create a ring of bullets around this invisible object and the ring (once created) will follow the invisible holder.

Each bullet is an object (a round red ball) in its own right so that if it hits terrain or the player only a part of the ring is destroyed.

Im also trying to make this a "widget" of sorts so that i can control the size of the ring and the amount of bullets it is made of.

Problem is i cannot seem to get it to work, i have tried loads of things but cant seem to figure it out. Any help will be much appreciated and you will be given a massive thanks in my game for the effort as this is fairly important to my project.

 
n/a

Duncan

Thelonious Dunc

Registered
  18/05/2002
Points
  552

VIP Member
4th March, 2013 at 04/03/2013 15:00:51 -

Hey, this sounds a bit like a problem I was working through a while back:

http://www.create-games.com/forum_post.asp?id=290302&show=all

We were talking about something a bit different, obviously, but scroll down and check out Sketchy's example file; it's solid. Think hard about whether or not you actually need an "invisible holder" - you probably don't actually need to establish an association between the bullets or whatever as long as you're giving them all appropriate trajectory instructions when you create them

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
4th March, 2013 at 04/03/2013 15:06:07 -

ok, i checked out the example, i have something like this already running in the game for static enemies however the issue comes when the new bullets are created and the spread value goes mad, thats where my problem stems from i think.

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
4th March, 2013 at 04/03/2013 15:46:57 -

I wouldn't use the invisible center object (you'll only have trouble matching the bullets to the right center objects). It's going to be easier just to store the coordinates where it would be (if you did have one), in the alterable values of the individual bullets.

eg. http://sdrv.ms/Y8FCIu

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
4th March, 2013 at 04/03/2013 17:07:49 -

your the best! thanks a million Sketchy!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click