...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?
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.
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.
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
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.