The Daily Click ::. Forums ::. Klik Coding Help ::. 2 Qs. Faster bullets, and Grouping
 

Post Reply  Post Oekaki 
 

Posted By Message

curtaineater



Registered
  12/06/2003
Points
  23
18th June, 2003 at 23:12:28 -

1. How would i make bullets go faster than 100 speed, its not very realistic.

2.is there a way to have it so i dont have to make a million and one collision with actions. something like having 'if object collides with' then have a group or soemthing like that.

thanks


 
n/a

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
18th June, 2003 at 23:55:08 -

1. You could always use a custom movement, but with bullets it can be tricky.

2. Yes. You can assign qualifiers to objects, but in TGF these are buggy

 
gone fishin'

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
19th June, 2003 at 00:36:22 -

For bullets if it's just two directions eg. a platformer than it's simple.

player.direction = right
+ pressed "shift"(shoot) - Create bullet at player - (bullet) set flag 0 on

player.direction = right
+ pressed "shift"(shoot) - Create bullet at player

If bullet.flag 0 = flag - bullet.x = bullet.x - 5(<speed)
if bullet.flag 0 = on - bullet.x = bullet.x + 5

That's for two directions. If you are doing an eight direction, you'll probabley have to use maths - 360 degrees movements.

 
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

Crystal Clear (H.E.S)

Possibly Insane

Registered
  06/10/2002
Points
  2548
19th June, 2003 at 01:57:39 -

I just did an example for you then in 5 mins, just a basic example of how to do it. quite easily done:

http://www.geocities.com/gerudokingau/test.zip


 
HES homepage:
http://www.distinctiv-efair.com/heretic/studios
Crystal Clear Productions: http://www.distinctiv-efair.com/heretic/crystalclear

Muggus

Possibly Insane

Registered
  31/07/2002
Points
  2958
19th June, 2003 at 02:08:22 -

Fast loops can allow your bullets to go as fast as you want...like instant hit basically. All ya need to do is believe...i mean know how to use it!

 
MUGGUS
Come and annoy me more at
www.muggus69.tk
STOUT ANGER!!!

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
19th June, 2003 at 02:44:54 -

There's a very, very easy way of doing it. I could make an example in less than a minute, but uploading it is another matter. Something about setting the position to the direction. (Special thanks to Aali for pointing this out.. he deserves to be a klik hero)

I've also heard of something called a bullet extension...

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Aali [Crazy_Productions]



Registered
  13/10/2002
Points
  843
19th June, 2003 at 04:44:47 -

Hehe you actually remember that?

 
"If Darl McBride was in charge, he'd probably make marriage unconstitutional too, since clearly it de-emphasizes the commercial nature of normal human interaction, and probably is a major impediment to the commercial growth of prostitution."
-- Linus Torvalds, December 5th 2003.

(Darl McBride is CEO of The SCO Group)


this place sucks but don't tell anyone, it's our little secret, ok?

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
19th June, 2003 at 08:22:01 -

That's the way I always used, but it can be a bitch to do when you got a lot of directions.

 
Image

Daniel[Crazy_Productions]

Possibly Insane

Registered
  29/12/2002
Points
  2505
19th June, 2003 at 08:35:35 -

should he be a hero! no way! just for that little thing? i thought that everyone knew that!

 
Beware of life ...so far noone have survived it.......

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
19th June, 2003 at 10:00:13 -

It is fairly obvious.

 
Image

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
21st June, 2003 at 11:40:59 -

As obvious as it is, few people actually noticed it. You guys ever seen what the legendary Jonathan Perry did to get active objects moving at above speed 100? I forgot the exact code, but it involved some long events and the Direction Calculator extension. But then again, the Fast Loop object wasn't invented at the time. And the stuff mentioned by the guys up there prove that many experts still don't know.

Hey, and Aali, I thought you quit the community or jumped off a bridge or something... long time no see.

Wait a min.. I don't know who's talking about which style here. You mortals confuse me.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Aali [Crazy_Productions]



Registered
  13/10/2002
Points
  843
21st June, 2003 at 13:40:05 -

i did jump off a bridge... but then i remebered: i'm not a mere mortal

 
"If Darl McBride was in charge, he'd probably make marriage unconstitutional too, since clearly it de-emphasizes the commercial nature of normal human interaction, and probably is a major impediment to the commercial growth of prostitution."
-- Linus Torvalds, December 5th 2003.

(Darl McBride is CEO of The SCO Group)


this place sucks but don't tell anyone, it's our little secret, ok?
   

Post Reply



 



Advertisement

Worth A Click