The Daily Click ::. Forums ::. Klik Coding Help ::. Multiple Direction shots.
 

Post Reply  Post Oekaki 
 

Posted By Message

Kai Proton



Registered
  31/01/2005
Points
  201

Wii Owner
3rd October, 2007 at 13:17:19 -

one of the weapons on my game, shatters into more bullets,

I need a way that i can program it without having to code

Shoot object -dir 0
Shoot object -dir 1
Shoot object -dir 2
etc..
Shoot object -dir 32

mainly because im a lazy git..


 
----------------------
Time for a Sexy Party!
----------------------

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
3rd October, 2007 at 15:01:15 -

- On shoot event: start loop "shoot" 32 times
- On loop "shoot": shoot object at direction LoopIndex("shoot")



EDIT: I'm not sure (and can't check right now) if MMF starts from direction 0 or 1. If it starts from 1, add 1 to the LoopIndex (LoopIndex+1).

Image Edited by the Author.

 
Old member (~2004-2007).

Kai Proton



Registered
  31/01/2005
Points
  201

Wii Owner
4th October, 2007 at 10:22:17 -

I dont seem to be able to shoot like that Davince,

Because you cannot use a calculation in the shoot direction dialog (1+1)

unless im missing an update in my MMF 1.5


 
----------------------
Time for a Sexy Party!
----------------------

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
4th October, 2007 at 10:31:23 -

Try creating objects at its position, and giving them a "ball movement", setting the initial direction in terms of the loop index. Generally you want to avoid using shoot object commands as much as possible.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
4th October, 2007 at 17:59:46 -

I haven't used Shoot object event in so long I forgot. Use Pixelthief's method, it works about the same except you can manipulate the object you're "shooting" better.

 
Old member (~2004-2007).

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
4th October, 2007 at 18:58:15 -

... Why must you never use the default way of shooting?

 
Image

Tell 'em Babs is 'ere...

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
5th October, 2007 at 04:41:59 -

It doesn't get assigned a movement, so you can't do more advanced actions like stop, bounce or change its direction afterwards.

...I think. You somehow get more control over the object, anyway, because you can rest assured it has a movement pattern.

 
Old member (~2004-2007).

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
5th October, 2007 at 13:53:29 -

Yeah, you're right about the stop part at least DaVince. I used to use shoot for certain objects and then could never get them to stop, even when you set their maximum speed value to zero. It's much better to just create a ball object and assign away, at least for me.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
5th October, 2007 at 17:21:34 -

Also, I believe that things that have been shot cannot shoot things from themselves. I think.

Image Edited by an Administrator.

 
Craps, I'm an old man!

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
6th October, 2007 at 09:33:36 -

they can.

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
6th October, 2007 at 13:02:24 -

Yeah, it wouldn't make sense if they couldn't, because shot objects can still do most things. It's mostly the movement that becomes a problem with shooting objects.

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click