User Tools

Site Tools


request_coordinate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
request_coordinate [2022/03/14 21:33] justinrequest_coordinate [2022/03/14 21:35] justin
Line 28: Line 28:
 </code> </code>
 //Results:// //Results://
-Prompts the player for a [[tile]] [[coordinate]], with a starting Z value of 0, a minimum of -64, a maximum of 64, and increments of 16. The custom "validate_coord" function is called to validate check if the [[coordinate]] at the current cursor location is valid (in this case, there isn't an existing [[tile]] at that location and the [[coordinate]] is one of three allowed locations in the [[array]] named "valid_coords"). Once the player selects a valid [[coordinate]], it will be stored into the $result variable.+Prompts the player for a [[tile]] [[coordinate]], with a starting Z value of zero, a minimum Z value of -64, a maximum Z value of 64, and increments of 16. The custom "validate_coord" function is called to check if the [[coordinate]] at the current cursor location is valid (in this case, it's ensuring that there isn't an existing [[tile]] at that location and that the [[coordinate]] is one of three allowed locations in the "valid_coords" [[array]] variable). Once the player selects a valid [[coordinate]], it will be stored into the $result variable.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
request_coordinate.txt · Last modified: 2022/03/14 21:43 by justin