Rule for putting items in sequential order
Hello,
Let's say I want to check if items (each has a number) have been put in sequential order from lowest to highest. What would that rule(s) look like?
Thanks,
Eli
Let's say I want to check if items (each has a number) have been put in sequential order from lowest to highest. What would that rule(s) look like?
Thanks,
Eli
Comments
What have you done so far to solve this yourselves? Have you used attributes to store the numbers or a table?
It is not because I want to be hostile. I think that we must help each other in the community but not do the work for each other.
HC
An Integer Attribute=How many correct?
A boolean attribute, what slot am I?
If self.position.x=_______
and self.position.y=_______ then change attribute- How many correct? to How many correct? + 1.
When how many correct = 5 then they have solved the puzzle. Maybe somebody else has a better way, but this is how I thought of it.
Create 5 Boolean global att.
On block1 when touch is press change attribute block1 to true
On block2 when touch is press and block1 is true, change block2 to true
On block 3 when press and block1 and block2 are true change block3 to true
On block4 when press and block,block2 and block3 are true change block4 to,true
On block 5 when press and block1,block2,block3,block4 are true change block5 to true
Now when your last block is true just set it to do what ever you want.also if you want to game over if a block is pressed in the wrong order just add a rule in the otherwise section for each block,for example lets touch block3 first, to have it game over you will need a rule. When touch is press and any of block1 and block2 is false change game over to true.
Attribute3=Attribute2, Attribute2=Attribute1 and Attribute1=Answer. Otherwise if Answer is less than or equal to Attribute1 AND Answer>Attribute2 then Attribute3=Attribute2, Attribute2=Answer"
and so on. I had to do seven numbers recently and was vary tedious but the only way I know how since we don't have the ability to sort tables.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
- rabbigarfinkel: Sorry to use your thread.
HC
Is that a workable solution, or am I going in the wrong direction?
Thanks,
Eli
I don't know, just so they don't have to put the actor to the pixel. Hope this helps
I would as @NovicaStudio check on the X and Y position.
Are the "puzzles" static or dynamic?
HC