Object should appear, after replay, whose level unfinished.
For my game and in each level, one diamond is placed.
This disappears forever in the game once I touch it and the level is completed, the way I want. And it works.
So far, so good.
The problem ......
When I touch the diamond and the level is not completed (that is to say, I pressed pause and replay button), the diamond disappears after replay.
I want to avoid this, because level unfinished, so the diamond is not accounted for in the score.
Requires that the diamond disappears when the level is completed and the diamond is touched
If the level is not complete and diamond is touched, it must appear after replay.
It is complicated for me! so help me, please.
This disappears forever in the game once I touch it and the level is completed, the way I want. And it works.
So far, so good.
The problem ......
When I touch the diamond and the level is not completed (that is to say, I pressed pause and replay button), the diamond disappears after replay.
I want to avoid this, because level unfinished, so the diamond is not accounted for in the score.
Requires that the diamond disappears when the level is completed and the diamond is touched
If the level is not complete and diamond is touched, it must appear after replay.
It is complicated for me! so help me, please.
Comments
Are you saying that if the player taps the diamond but then restarts the scene, the diamond should re-appear? Usually this is done with a "Reset scene" actor that is hidden and performs a bunch of tasks, such as spawning the diamond actor, when an attribute such as game.reset is changed from false to true.
once the event is completed and the level is completed,
it takes more than diamond does not appear.
Uploaded with ImageShack.us
To be more clear, here are some pictures:
diamond rules 1, when the ball hits the diamond,
then attribute "integer" "Diamcolision to 1"
Uploaded with ImageShack.us
-------
diamond rules 2, actor destroyed forever
whose "boolen click" is created.
Uploaded with ImageShack.us
-------
replay after pause
Level is not finished!
the ball touches the diamond, I pause and "replay"
no diamond is my problem.
You will see on the videos below, the score remains 1.
Uploaded with ImageShack.us
--- video
Here below 2 Video:
VIDEO 1, "after pause, I replay"
diamond does not appear!
We must solve this problem
Uploaded with ImageShack.us
----
VIDEO 2, "Level complete after touch diamond"
this event is correct.
the number 1 is the score of the diamond.
this works.
Uploaded with ImageShack.us
Is that these images will help you to answer me?
The images and video were very helpful! Just a note that you can view the entire expression by clicking on the text field(s) and then taking a screen shot. You can move the expression editor window that pops up so that is doesn't cover part of the rule (such as the less than symbol or the "To:" text).
the attribute "diamcollision" is an "integer".
The best I can send you the scene for you to edit.
if you wish, you want to coment that I send? by mail.
remaining in the wait.
I've send a private message stating the link.
remaining in the wait.
I noticed you have two behaviors in your Reset actor that have missing attributes. They are just blank on one side of the expression. Check those and see if that's causing the problem.
(ignore the "debug" actor as I added that)