In On start of layout: Player->Set position(LayoutWidth/2, LayoutHeight/2)
http://www.blackhornettechnologies.com/ ... rase2.capx
Paster:
plugin-paster_t88750
http://www.blackhornettechnologies.com/ ... Erase.capx
That's the concept Families provide. Not available in the free version.
"On collision" is a trigger, which you can't use OR on. Just have the two separate events (AND works in the first case) and call a function that does the actions.
Your bullets are spawning on layer 0, but at least you gun is on layer "Game" - I'm guessing they aren't the same, and you have parallax values on layer 0 (background).
Triggers are different from normal events. You can't do an OR on them. Put your actions in a function, and then use the second example to call the function in each case.
Just exchange the ZIP for CAPX. A capx is just a ZIP that's been renamed.
The loop runs once, but the C2 engine runs all events 60 times a second, so you have to design your code with that in mind.
I just helped someone do this:
You need to associate the gate UID with the lever and pick the gate, not the lever.
Develop games in your browser. Powerful, performant & highly capable.
You need an Else in event 30 to stop both actions running.
A variation of VictoryX's:
http://www.blackhornettechnologies.com/ ... ation.capx
Member since 28 May, 2012