The Daily Click ::. Forums ::. Klik Coding Help ::. Few major bugs
 

Post Reply  Post Oekaki 
 

Posted By Message

Jannuli



Registered
  16/05/2002
Points
  59
13th October, 2004 at 09:55:29 -

Okay, few days back I started to make a top-down scroller shooter with TGF in style of raptor etc. Everything went fine except now. I would complete the demo of the game but there are some major bugs that prevent that.

1. The game crashes on some occasions, one is that when I set the tanks bullet to destroy if it is getting close to windows edge, that seems to crash the game, with that thing I tried (and mainly succeeded) to prevent the enemies bullets coming even when they are not on the screen. If there's a better solution for that, it would be just great.

2. TGF has a limit for active objects? right? well, sometimes that seems to prevent the player from shooting, any solution?

3. The game crashes sometimes randomly (like when the player dies), or without a reason that I'm avare of.

I think these are the major problems, I have uploaded the "source", so if anyone would be kind enough and have the time to look at it and give me a helping hand, that would be just great. Awesome to be more specific actually.

the .gam file: http://www.netikka.net/janei/shooter.zip

(I also like to apologize if some of these problems are very easy to solve, im not that familiar with the program yet.)

Thanks in advance.



 
dr00l

Nuutti



Registered
  26/10/2003
Points
  1364
13th October, 2004 at 10:08:37 -

jaa, kun mä testasin tota mmf:ssä niin se kyllä näytti ihan hyvin toimivan...
mikähän siinäkin sitten olisi? en kyllä tiedä, mutta voi johtua tgf:stä tai koneestasi tai jostain muusta...

 
P.S. sorry for my mangled english.

Hernan



Registered
  04/03/2003
Points
  707

VIP Member
13th October, 2004 at 10:32:10 -

I can aswer the second question:
The reason why there are too many objects is, that the enemies shoot bullets even outside the window.
Create an object, call it "center" or whatever, make it invisible, place it at (260,300) (y=300 is more important in your case), uncheck "follow the playfield". So that the object will now flow exactly in the middle of your window.

You made your event like this: every x seconds-> ("cannon") shoots a bullet

Insert these conditions:
Y position of ("cannon")> Y("center")-300
Y position of ("cannon")< Y("center")+300

This way the cannons will only shoot when they're in the window. Do the same for all other enemies
Tip: create a counter and place it on the top right corner of your playfield, create event: always-> set couter to nobjects
This way you can always check how many objects there are in your game
just delete the counter when you release it.

Did Nuutti Hölttä [GameCyborg] ask you to buy multimedia fusion? Don't listen to him. Your game can be easily created in TGF. Good luck with it.

 
This space is for rent

Jannuli



Registered
  16/05/2002
Points
  59
13th October, 2004 at 10:54:26 -

Ah, thank you so much Hernan. Almost too simple And don't worry, I will always stuck with tgf

 
dr00l

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
13th October, 2004 at 11:49:33 -

MMF is much more stable than TGF, so TGF might just be randomly crashing because it can't handle your game. Also TGF becomes very unstable once you hit the object limit, so you should try to stay well under it.

What's the module name of the crashes? If it's a .GOX file, that extension is causing the crash.

 
- Tigerworks

daveC04



Registered
  26/09/2004
Points
  163
14th October, 2004 at 08:34:14 -

"And don't worry, I will always stuck with tgf "

if you used mmf instead of tgf you wouldn't be having half the problems you've got.

 
n/a

Jannuli



Registered
  16/05/2002
Points
  59
14th October, 2004 at 14:58:01 -

I know that now, and I will still stick with my words.

 
dr00l

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
14th October, 2004 at 17:17:46 -

wasnt there an event limit? im sure KnP had one. i made a game years ago called Hex which was a top-down shooter with bucket loads of guns and lots of juicy events, but it would crash whenever the player entered the levels.

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
14th October, 2004 at 18:52:28 -

Hm, that's quite a big problem isn't it? Yes, the event limit was something low but higher than 600, and in MMF it's gone up to 4096 visible event lines (so you can have stuff in groups which bring the total to over 4096). However, if you actually reach that limit without groups, you're probably doing something really inefficiently anyway.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click