Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
VyScript to detect what side of map void the player bumps into. (Vylocity engine:
if (pB == Map.void)
if (this.xPos == -this.xOrigin)
World.log("bumped against left void")
else if (this.yPos == -this.yOrigin)
World.log("bumped against top void")
else if (this.xPos == Map.getMapSize(this.mapName).xPos-this.xOrigin-this.width)
World.log("bumped against right void")
World.log("bumped against bottom void")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.