The Daily Click ::. Forums ::. Klik Coding Help ::. Need help [my player stops shooting]
 

Post Reply  Post Oekaki 
 

Posted By Message

Nothing, Ok?



Registered
  14/05/2004
Points
  199
8th July, 2004 at 14:44:26 -

I'm making a megaman game and there is a problem.... He wont shoot after a while, i think it's becous there is to many objects on the screen. And i need help so i can finnish the game....

 
Is Nothing, Ok?

http://www.ohwriters.com/

http://www.ohwriters.com/

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
8th July, 2004 at 14:54:32 -

That's exactly the problem!

To fix that, make the following event:

>If laser is 0 pixels from the edge of the screen
-destroy laser.

Hope that helps.

 
n/a

Nothing, Ok?



Registered
  14/05/2004
Points
  199
8th July, 2004 at 15:07:51 -

No that's not the problem... I allready done that but the problem is still there.

 
Is Nothing, Ok?

http://www.ohwriters.com/

http://www.ohwriters.com/

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
8th July, 2004 at 18:51:40 -

Add a counter to your game, and in an Always event set the counter's value to NObjects (find it in Create New Object). You should be able to see when created objects don't get destroyed again.

 
n/a

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
9th July, 2004 at 00:34:06 -

Updated topic name. Please use descriptive titles for your posts in the future.

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

tdc052621



Registered
  20/12/2002
Points
  908
9th July, 2004 at 01:30:50 -

Thats what i would do, just try to make a counter engine for your shooter and it will work.

 
n/a

Tina Petersen



Registered
  19/09/2003
Points
  350
9th July, 2004 at 13:55:12 -

remember that if ur bullets are inactive when they go outside the actual visual screen! they wont move anymore and henceforth never get out of the level frame! Either edit it to be active outside!
or

if %bullet% x position < %Player% xpostion - (Half screen width) then destroy
if %bullet% x position > %Player% xpostion + (Half screen width) then destroy
if %bullet% y position < %Player% ypostion - (Half screen height) then destroy
if %bullet% y position > %Player% ypostion + (Half screen height) then destroy

 
- Eternal Life, Or Your Money Back -
http://www.befun.dk/
Currently looking for a home (team)

tdc052621



Registered
  20/12/2002
Points
  908
9th July, 2004 at 14:36:08 -

If you are using TGF I think it will do the job for you , but if you are using MMF you will prob. have to make a small engine for it.

 
n/a

Nothing, Ok?



Registered
  14/05/2004
Points
  199
9th July, 2004 at 15:14:01 -

So u think i should create a counter, and set it to allvays set counter to number of objects?

 
Is Nothing, Ok?

http://www.ohwriters.com/

http://www.ohwriters.com/

Nothing, Ok?



Registered
  14/05/2004
Points
  199
11th July, 2004 at 07:10:29 -

I don't work...

 
Is Nothing, Ok?

http://www.ohwriters.com/

http://www.ohwriters.com/
   

Post Reply



 



Advertisement

Worth A Click