The Daily Click ::. Forums ::. Klik Coding Help ::. Inifitely long laser beams
 

Post Reply  Post Oekaki 
 

Posted By Message

Kokocipher



Registered
  03/06/2008
Points
  439
21st April, 2010 at 19:01:53 -

long laser beams... how would you simulate something like that in MMF2?
Image



Edited by Kokocipher

 
http://blog.kokoarcade.com

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
21st April, 2010 at 20:15:42 -

this is just off the top of my head but,
I'd have one event that creates either a single large laser object or various small objects perhaps with a slight delay if you want the firing to be noticeable.

Then I'd have the exact same movement events as the player ship for the laser object(s) so they will stay exactly as they are in front of it.

 
.

Kyle Strait



Registered
  10/01/2010
Points
  154

360 OwnerWii Owner
21st April, 2010 at 20:16:49 -

Im not sure if this works but you can try it... Try making the laser a good 32px tall and then just make it "Repeat while player presses fire 1>shoot object laser in direction 'up' at speed 100" and it should work... now then I do not know how you would make one that you can't stop on your own... Just be sure you don't have an "every" action in there

 
The above post most likely bored you.

Kokocipher



Registered
  03/06/2008
Points
  439
21st April, 2010 at 21:40:15 -

I was thinking maybe it requires a custom coding for mortif of active objects much like the one that is built in for quick drop, but I have no idea the logic behind it.

Edited by Kokocipher

 
http://blog.kokoarcade.com

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
21st April, 2010 at 21:42:51 -

Would have posted this earlier, but I had to go somewhere.

http://jollycrouton.com/Uploads/laser.zip

Hope that works! I can explain it if you need.

Edited by OMC

 

  		
  		

Kokocipher



Registered
  03/06/2008
Points
  439
21st April, 2010 at 23:32:22 -


Originally Posted by OldManClayton
Would have posted this earlier, but I had to go somewhere.

http://jollycrouton.com/Uploads/laser.zip

Hope that works! I can explain it if you need.




Thank you, Clayton.

 
http://blog.kokoarcade.com

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
22nd April, 2010 at 00:28:46 -

No problem, man. Hopefully that solution will work long-term.

 

  		
  		

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
22nd April, 2010 at 09:24:24 -

It depends how instantly you want it to appear. If you want it to slowly show up then OldManClayton's method is good, but if you want it to appear instantly then you should use a fast loop to put a few actives in place. If it doesn't need to stop when it hits something, then just make it one big active and use HWA

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

MBK



Registered
  07/06/2007
Points
  1578

VIP Member
23rd April, 2010 at 07:00:47 -

You could make it one big active like these nice fella's stated, but then give it an animation for shooting (shooting) and an animation for laser particle effects animating (laser).

Repeat Space Pressed
laser animation is not currently playing ---> change animation to shooting

Repeat Space Not Pressed ---> turn invisible or destroy or stop anim (however you want to do it)

Shooting Anim is over ---> change animation to laser

Edit: oh yea, and loop the laser anim


Edited by MBK

 
Click Me! http://www.create-games.com/project.asp?view=main&id=1444

http://www.mediafire.com/download.php?aoo1dnnlq5i

Blood of the Ancient One, Seen only as Shadow, Faster than Lightning, Fierce as the Greatest Dragon, Nearly Invisible, Floating in a Dream, Entered through the Demon Door, Destroyer of Evil in a Realm with a Red Sky Scarred, Who could I be ?
   

Post Reply



 



Advertisement

Worth A Click