Why don't you post what you have. I have to keep guessing at what you are looking for.
ArrayTileLoopSample.capx
Actually you can replace the 'Create/Set position' with a Spawn, to save a step. Also the ColDetUID instance-variable on the Car isn't used and can be removed.
This is best done with an invisible detector (left not-so-invisible so you can see it for this example).
CarSelfDetection_invisibledetector
Edit: Oops, didn't read the full thread. Here's one with multiple cars moving.
CarSelfDetection_invisibledetector_multi
Event 5: change Mouse.X("HUD") to Mouse.X(0), and the same for Y.
Here's another alternative with the new Timer behaviour, and a few other alterations.
StopSprite_timers.capx
(r138.2)
DictWithRevertSaveCreate_r132.capx
Given that you are actually fading in, I'm assuming layer 10 is all white.
FadeOut_byFadingToWhite.capx
This is one of those 'it depends' questions. Usually you'd use a Dictionary to use an arbitrary key/index. Here's a very quick example:
DictWithRevert_r132.capx
Develop games in your browser. Powerful, performant & highly capable.
This is where a function will help you. Pass in the UID, pick it, and set your character widths there. Call it on the title screen too.
The same logic applies for health:
SingleCollisionTest_withHealth_r132.capx
'For each' won't help in this case as 'On collision' is called for each collision already - only one target is picked at a time. You have to do something to have the subsequent calls blocked.
You're doing something wrong if you need that many conditions. I think we need to see the bigger picture. Are you comfortable posting what you've got so far? Families may also help here.
Member since 28 May, 2012