basically i want to replace a by b when a reaches, for example x<293
x < 293 ? a > spawn another object "b"
a > destroy
caiorosisca can u make things a bit easier for me? (im a new c2 user)
Develop games in your browser. Powerful, performant & highly capable.
Ok, my solution is to have ObjectA creating a new object (ObjectB) at it's own position, then destroying itself.
Create an event that checks for ObjectA.X < 293, for actions choose ObjectA > Spawn another object> select ObjectB, choose the layer you want, and leave 0 on the image point box.
Next action is ObjectA > Destroy.
Another alternative, I'm not sure if that works in your case, is to only change the Sprite's animation frame (in case the objects are only visually different)