The Daily Click ::. Forums ::. Klik Coding Help ::. Laser Beam (TGF)
 

Post Reply  Post Oekaki 
 

Posted By Message

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
13th September, 2004 at 02:14:55 -

Yep im on dial up - still wont take too long to download, so I'll give it a try when I get back home from school o_-

Thanks.

 
This is a signature. Have this one on me.

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
13th September, 2004 at 07:33:07 -

Noooooooooo! That's the hard way.

Pressed space: Start loop #0

Loop trigger #0
- Create Laser at from ship
- Set laser.y to ship.y
- set laser.x to ship.x + loopindex(0)*(length of laser)

Laser animation stopped is over
- Destroy Laser

 
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

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
14th September, 2004 at 01:53:56 -

Doesn't seem to work - and cant find "loopindex()" function on TGF (typed it in but wouldn't allow it)

 
This is a signature. Have this one on me.

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
21st September, 2004 at 13:50:30 -

So does anybody have any other ideas or simpler explanations on doing this? I really need to know how - desperate ;(

 
This is a signature. Have this one on me.

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
21st September, 2004 at 18:53:20 -

It's easy, dude. Just use the single object way if you're having trouble.

 
n/a

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 September, 2004 at 00:16:44 -

Soz for late reply. Loopindex is the MMF version for TGF:

Loop Step( "Fast Loop object", > Enter value here < )

And replacing my code:


Pressed space: Start loop #0

Loop trigger #0
- Create Laser at from ship
- Set laser.y to ship.y
- set laser.x to ship.x + Loop Step( "Fast Loop object", 0 )
*(length of laser)



 
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

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
22nd September, 2004 at 02:09:49 -

I'm doing just that and its not working at all.. Please could somebody just download what I've done below and try it out. I know its a bit selfish, but this will be a main part of my new game - and I really don't want to have to stretch to using the one object method..

You can find what I have done at: www.opix.org/flava/fwlaser.gam

 
This is a signature. Have this one on me.

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 September, 2004 at 05:45:48 -

Repeat while pressed space: Start loop #0 for 10 loops

Loop trigger #0
- Create Laser at [anywhere]
- Set laser.y to ship.y
- set laser.x to ship.x + Loop Step( "Fast Loop object", 0 )
* 4
- Set alterable value A of laser to : Loop Step( "Fast Loop object", 0 )

Always
- Set laser.y to ship.y
- set laser.x to ship.x + laser.AltA * 4

laser's animation stopped is over
- Destroy laser

I have MMF so I can't give you my version. It would be in cca format.

 
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
   

Post Reply



 



Advertisement

Worth A Click