could someone help by providing a example of incorp a fastloop to detect a shot colision with a backdrop and its destruction.
thanks in advance
could someone help by providing a example of incorp a fastloop to detect a shot colision with a backdrop and its destruction.
thanks in advance




Fastloop Tutorial
Other Tutorials
stephen1980
thanks i have looked at the fastloop tutorial according to rules i cannot destroy anything within a fastloop but i can stop colision and reposition along edge. i just want to stop my shot going through the background. e.g shot fires hits background destroy shot thats it sounds simple i cant do it.
have you a suggestion?
thanks











You don't need fastloops for that. All you have to do is have a condition "Shot collides with background" then Destroy Shot.Originally Posted by willow
ah forgot to say the action is within a scrolling screen so the "shot collides with background" goes through and off into the matrix and kills every1











Are you using a level loading routine in a single frame or something? I'm not clear on what exactly you are doing here, as that should work whether the game scrolls or not.Originally Posted by willow
If you mean just stopping it from going off the edge of the screen, you'd have to do "Shot is getting 0 pixels from window's edge" then destroy shot. Also, make sure all the backdrops are set to Obstacle.
But maybe if you provide more info on how your game is setup that will help us figure it out.
hold on this is realy basic stuff im only !new to mmf!
no fancy level loading routines.
heres what i have:
a realy big screen. scrolling with player
player who shoots in all directions.
player bounces off background new enemy created and moves away so no instant collision.
enemy movement bouncing ball "bounces" of background
health bar positioned above player and goes down upon collision or shooting two choosen enemys
as you can see its basic but its my idea and most of it works.
As i said earlier the shot passing through the background dosnt look good and it dosnt always happen.
would i be better of using an active object for the background this way i could set hot spot and action point.
would this help?











Honestly, I think what is happening is that maybe some of your backdrop objects you forgot to set to "Obstacle" for their collision type. I would check all of those. Because for what you are doing "Shot collides with backdrop" then "Destroy Shot" should be working. If it is passing through some obstacles but not all, then I would say some of them must not be set to Obstacle.
Also, check your hotspots for your Shot object to make sure they are all the same.
No, changing to actives wont help and it will eat up a lot of resources if you make all of your background objects with actives.
Edit - Also, double check that you have the Runtime property "Handle background collisions even out of Window" checked. And I would add the the check for the Shot getting closer than 0 pixels from window's edge and then destroy it to keep it from going off the screen.
thanks shawn got it i hadnt checked the box for collisions daaa
one more question how can i get around players score i dont want to put it with the player. i wont be able to fix it to a position on screen as scrolling both directions any suggestions?




Having it onscreen while scrolling should not be a problem. Uncheck "Follow the Frame" in the properties of the score.
stephen1980