The Daily Click ::. Forums ::. Klik Coding Help ::. Perhaps a beginners question, but still...
 

Post Reply  Post Oekaki 
 

Posted By Message

tobbe



Registered
  26/05/2003
Points
  41
13th December, 2004 at 14:50:27 -

...They need to be asked sometimes. I am making an side-scrolling shootemup for school, and I've come a bit on the way. Now I am at the enemies. I made it so that the enemy ships fire every second, but when the ships sees the enemies, 3 or 4 shots come out, mostly two from the ship itself, and 1 or 2 from somewhere else. Do you guys recognise this?

 
pixel artist

Matt Boothman

The Nissan Micra of forum members

Registered
  20/09/2002
Points
  109

Game of the Week Winner
13th December, 2004 at 14:54:38 -

Does the ship only fire when it sees the enemies? Try to check every event, and make sure there isn't any rogue conditions.

 
http://soundcloud.com/normbo - Listen to my music.

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
13th December, 2004 at 15:00:53 -

Try adding a condition that prevents the ships from firing if they're off-screen.

 
http://www.davidn.co.nr - Games, music, living in America

AS Filipowski



Registered
  29/02/2004
Points
  444
13th December, 2004 at 16:07:24 -

Probably you might have forgotten to uncheck something. Usually by default, MMF makes the scrolling object pause when not in the window. This can cause havoc with stuff such as shooting, because when you move, suddenly 100000000000 bullets hurtle towards you. Like Wong said, try and restrict them from firing if you are out of reach.

Unless you use TGF or something

Image Edited by the Author.

 
I do not have a signature of my own

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
13th December, 2004 at 16:11:27 -

Off-screen objects are inactive by default, so it's probably stacking up "inactive" shots off screen which all appear when you scroll there. Try unticking "inactive if far from playfield" in the bullet object's scrolling properties.

 
- Tigerworks

tobbe



Registered
  26/05/2003
Points
  41
14th December, 2004 at 01:59:41 -

it was that easy, thanks guys. I would look better if he only fired the shoots when the enemy is on-screen, where is the event for that? I looked for it but couldnt find the right one.

 
pixel artist

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
14th December, 2004 at 02:15:00 -

enemy.x < X Right Frame

This event will occur when the enemy's x position is lower than the X of the visible Right side of the frame. It's under the frame's conditions, but if you can't find it just copy 'X Right Frame' into the dialog.

 
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

Galaxy613



Registered
  29/01/2003
Points
  1765
17th December, 2004 at 23:49:10 -

Then copy, paste, rise, repeat.

 
Image
My forum: http://subsoap.com/ck/forums/index.php
   

Post Reply



 



Advertisement

Worth A Click