Games follow path from Tiled

sager

Member
Licensed User
follow path from Tiled
 

Attachments

  • 111.jpg
    159.3 KB · Views: 496
  • 222.jpg
    253.8 KB · Views: 492
  • path.zip
    25.4 KB · Views: 468

Gunther

Active Member
Licensed User
Longtime User
Öhm, failure or just showing that it is working?

The app is running here and the arrow is moving from hinge to hinge but bypassing P1.

May be you could add a real stop as an end:
B4X:
If pointNo = 9 Then
      Log("End")
      X2.stop
Else
 
Last edited:

sager

Member
Licensed User

I think it is not an appropriate solution
The game will stop completely, right
 

Gunther

Active Member
Licensed User
Longtime User
It all depends what you want to archive.

The X2.Stop at that position ended the game loop. Actually it paused it after the game loop. You can re-start it with X2.Start.

But for your given example it looks for me as a next logical step to stop the game loop and also the running "End" in the lock.

Since you didn't mentioned the reason for the threat, no one knows except you.
 

sager

Member
Licensed User
Has been added
Continuous movement between two points
 

Attachments

  • path2.zip
    206.6 KB · Views: 478
  • 333.jpg
    169.4 KB · Views: 438

Beja

Expert
Licensed User
Longtime User
Hi,
The project is not compiling and I got this error log

Unknown member: clear
Unknown member: getnativeparent
Unknown member: initialize
Unknown member: remove
Unknown member: add
Unknown type: b4xset<br />Are you missing a library reference?
Undeclared variable 'keys' is used before it was assigned any value.
Undeclared variable 'keys' is used before it was assigned any value.
Undeclared variable 'keys' is used before it was assigned any value.
Undeclared variable 'b4xpages' is used before it was assigned any value.
Undeclared variable 'keys' is used before it was assigned any value.
Unknown type: b4xset<br />Are you missing a library reference?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…