Advanced games using the point system

So I’ve attempted to make a puzzle game. This would need the point system to work though.
so…
to rotate the tiles the player clicks on the tile which the rotates 90 degrees clock wise each time it is tapped.

but to do this it requires labels.
Do points still count if you need to use a goto to go to a label that is used before you gain the points or do the points reset?

not even sure if this makes any sense :stuck_out_tongue:

also if there an easier way to get an overlay to stay in the same place while roatating or do I need to keep using the command @overlay OVERLAYNAME shifts to …

@Apes do you know if the points reset if you use a goto which takes to a label before the points are gained?

if that makes sense?

The points will reset if you reset it yourself.

I’ve done labels that go back, and it will only reset unless I reset the points myself :slight_smile:

Thanks not quite sure why they wont rotate then :thinking:
The overlay will rotate the first time while the character has 0 points but then wont rotate again when they have gained 1 point.

The previewer is different then the app, I tried it on my PC and my points reset, but on my phone it seemed to work fine.

I’m viewing this via the mobile app though

That’s weird, could you copy and paste your script to me?

Maybe my app is bugging out :joy:

ha ha ha I warn you it looks a bit messy :stuck_out_tongue:
like I say it seems to work while the character TR has no points but then keeps repeating that rotation as if it hasn’t gained any other points
EXT. BLUE - DAY with TL to 1.000 4 351 with TR to 1.000 150 351 with BL to 1.000 4 204 with BR to 1.000 150 204
@overlay TR rotates 90 anchor point 0 0 in 0
@overlay TR rotates 90 anchor point 0.5 0.5 in 0
@overlay TR rotates 90 anchor point 1 1 in 0
@overlay TR shifts to 300 351 in zone 1 in 0

@overlay TL rotates 180 anchor point 0 0 in 0
@overlay TL rotates 180 anchor point 0.5 0.5 in 0
@overlay TL rotates 180 anchor point 1 1 in 0
@overlay TL shifts to 4 352

@overlay BL rotates 270 anchor point 0 0 in 0
@overlay BL rotates 270 anchor point 0.5 0.5 in 0
@overlay BL rotates 270 anchor point 1 1 in 0
@overlay BL shifts to 2 353

@overlay BR rotates 180 anchor point 0.5 0.5 in 0
@overlay BR shifts to 225 278 in 0

label puzzlegame
tappable
“TR” {
goto TRtile
}

label TRtile

if (TR>0)
{
@TR +1
@overlay TR rotates 180 anchor point 0 0 in 0
@overlay TR rotates 180 anchor point 0.5 0.5 in 0
@overlay TR rotates 180 anchor point 1 1 in 0
@overlay TR shifts to 152 353
goto puzzlegame
}

elif (TR>1)
{
@overlay TR rotates 270 anchor point 0 0 in 0
@overlay TR rotates 270 anchor point 0.5 0.5 in 0
@overlay TR rotates 270 anchor point 1 1 in 0
@overlay TR shifts to 152 353
@TR +1
goto puzzlegame
}

elif (TR>2)
{
@overlay TR rotates 360 anchor point 0 0 in 0
@overlay TR rotates 360 anchor point 0.5 0.5 in 0
@overlay TR rotates 360 anchor point 1 1 in 0
@TR +1
goto puzzlegame
}

elif (TR>3) {
@overlay TR rotates 90 anchor point 0 0 in 0
@overlay TR rotates 90 anchor point 0.5 0.5 in 0
@overlay TR rotates 90 anchor point 1 1 in 0
@TR +1
goto puzzlegame
}

How does the reader gain TR points in the first place, because there only seems to be @TR +1 inside of branching options?

This happened when the use the option TR as it is a tappable overlay.
:thinking:

so it starts off with 0 points that’s what makes the overlay turn 180 while it does that it gains 1 point
so when you tap it again it will already have 1 point allowing it to rotate 270 which adds on another point.
ect…

Tappable overlays are unfortunately still in BETA, so it’s common to run into issues.
But I think it could be easier if I could see the overlays & background and give it a go myself.
I’m more of a visual person :joy:, only if your okay with sharing the overlays and stuff!

sure I have no problem sharing as this is actually just a story which I experiment in :wink:
I was starting to think about it being in beta so that may be it… You may end up going into episode 2 this was due to an old test I was doing :slight_smile: so you may need to reset the episode although I’m pretty sure I’ve got it in a loop at the moment.

So far only the top right square will be working as that’s the one I’m currently working on
TR= top right TL= Top left BL=bottom left BR= Bottom right

I will be trying out a way to win the game using points if I can get the puzzle to work in the first place :smiley:

https://www.episodeinteractive.com/write/story/Story_Title_akfe/1

mean while I’ll experiment with it a bit more

I can’t access it, because it’s on your e-mail account, but all I’ll need are the PNG files of the overlays!

I’m adding it to a story I use just for scripting, if that makes sense :joy:

ohh I see
sure
TL
TR
BL
BR

I found your issue, when you do TR>0, it’s doing any value greater than 0, and 3 and 2 and 1 and every number after that is greater than 0, so instead you’d have to do an = sign!

EXT. BLUE - DAY with TL to 1.000 4 351 with TR to 1.000 150 351 with BL to 1.000 4 204 with BR to 1.000 150 204
@overlay TR rotates 90 anchor point 0 0 in 0
@overlay TR rotates 90 anchor point 0.5 0.5 in 0
@overlay TR rotates 90 anchor point 1 1 in 0
@overlay TR shifts to 300 351 in zone 1 in 0

@overlay TL rotates 180 anchor point 0 0 in 0
@overlay TL rotates 180 anchor point 0.5 0.5 in 0
@overlay TL rotates 180 anchor point 1 1 in 0
@overlay TL shifts to 4 352

@overlay BL rotates 270 anchor point 0 0 in 0
@overlay BL rotates 270 anchor point 0.5 0.5 in 0
@overlay BL rotates 270 anchor point 1 1 in 0
@overlay BL shifts to 2 353

@overlay BR rotates 180 anchor point 0.5 0.5 in 0
@overlay BR shifts to 225 278 in 0

label puzzlegame
tappable
“TR” {
goto TRtile
}

label TRtile

if (TR=0)
{
@overlay TR rotates 180 anchor point 0 0 in 0
@overlay TR rotates 180 anchor point 0.5 0.5 in 0
@overlay TR rotates 180 anchor point 1 1 in 0
@overlay TR shifts to 152 353
@TR =1
goto puzzlegame
}

elif (TR=1)
{

@overlay TR rotates 270 anchor point 0 0 in 0
@overlay TR rotates 270 anchor point 0.5 0.5 in 0
@overlay TR rotates 270 anchor point 1 1 in 0
@overlay TR shifts to 152 353
@TR +1
goto puzzlegame
}

elif (TR=2)
{
@overlay TR rotates 360 anchor point 0 0 in 0
@overlay TR rotates 360 anchor point 0.5 0.5 in 0
@overlay TR rotates 360 anchor point 1 1 in 0
@TR +1
goto puzzlegame
}

elif (TR=3) {
@overlay TR rotates 90 anchor point 0 0 in 0
@overlay TR rotates 90 anchor point 0.5 0.5 in 0
@overlay TR rotates 90 anchor point 1 1 in 0
goto puzzlegame
}

Does that make sense? :joy: It never rotated again because even if you added more +1’s it was always greater than 0.