This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
AgsSQLite* db = AgsSQLite.Open("test.db");
String sql = "";
sql = sql.Append("CREATE TABLE CHARACTERS(");
sql = sql.Append( "ID INT PRIMARY KEY NOT NULL,");
sql = sql.Append("NAME TEXT NOT NULL,");
sql = sql.Append("ROOM INT NOT NULL,");
sql = sql.Append("X INT NOT NULL,");
sql = sql.Append("Y INT NOT NULL);");
SQLiteQueryStatus rc = db.ExecuteQuery(sql);
Display(db.GetQueryStatusText());
managed struct Table {
import attribute String Cell[];
int RowCount;
int ColumnCount;
};
Table* result = db.GetQueryResult();
Display(result.Cell[x+y*result.RowCount])
// Initializes from an int sprite
Navmap* myMap = Navmap.CreateFromSprite(2);
// find path from source x,y to destination x,y
Point path[] = myMap.FindPath(20, 64, 100, 300);
if (path == null)
return; // no path found
for (int i = 0; path[i] != null; i++)
{
}
Navmesh* myMesh = new Navmesh;
myMesh.AddVertex(/* id */ 1);
myMesh.AddVertex(/* id */ 2);
myMesh.AddEdge(/*p1 id */ 1, /* p2 id*/ 2, /* "effort" */ 5);
myMesh.AddVertex(3);
myMesh.AddEdge(1, 3, 25);
myMesh.AddVertex(4);
myMesh.AddEdge(3, 4, 1);
myMesh.AddEdge(2, 4, 1);
int mesh_path[] = myMesh.FindPath(1,4);
//mesh path will be an array containing [1,2,4,0]
// 1 Pass sprite 1 to be used as map
AgsPathfinder.SetGridFromSprite(1);
// 2 Calculates the path and returns a vector containing all the nodes
PathNodeArray* pathNodeArr = AgsPathfinder.GetPathFromTo(origin_X, origin_Y, destination_X, destination_Y);
// 3 Consume your path node by node
while(!pathNodeArr.Empty()){
PathNode* pathNode = pathNodeArr.Pop();
// do something with pathNode.X and pathNode.Y
}
bool AgsFastWFC.Overlapping(
int destination, int sprite,
int seed,
bool periodic_input, bool periodic_output,
int N=3, int ground=0)
if (System.OperatingSystem == eOSAndroid || System.OperatingSystem == eOSiOS) {
Display("Running on mobile!");
}
else {
Display("probably desktop!");
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.044 seconds with 15 queries.