Two Different Concepts - Need Help
Alright, I want to work on a flash game (which I have not done in a while.)
While working on it, I ran across a couple issues that I am not quite sure how to handle.
1. Copy Sprites - This is pretty straight forward. Say I create the object "Block". What do I do if whenever a user clicks, I want the object "Block" appear there. If there is already another on the screen, there will now be 2 Block objects following the SAME programming. So it will not just be a picture, but follow physics that I have instructed it to. So if the user clicks 50 times, there will now be 50 blocks that follow whatever programming I gave the object 'block' to perform in the first place.
2. Velocity Deplacement - This is something I am still unsure how to do and not even 100% MMF2 can do it. Let's say I shoot a block out of a cannon moving at 20pixels a second (in fastloop form). So, if it colides with ANY object with the group, "Object", it is to divide it's own velocity by 2. The OTHER object will then steal the velocity of the object that touched it after the division. So the collision will slow down the object, then it will cause the other object to move because of the collision.
The issue I am having is that I cannot define which OBJECT to set velocity to. I want it to affect ANY object under the group 'OBJECTS', but I do not want them all to move if it colides with a box, just the box it collided with.
Any ideas guys? That means that I cannot use a Global Value as all 100 boxes will half their velocity based on one global value which means.....if one moves, they all move.
Re: Two Different Concepts - Need Help
Re: Two Different Concepts - Need Help
Look into using a "spread value".