hello, i'm new to playmaker and i have a question.
i'm making my first game,
minesweeper, and i started with some javascript codes before discovering playmaker. so i have a script that instantiate a grid made of cubes (this will be the map).
this is the javascript code that generate the map.
#pragma strict
var width : int = 9; // width and height of the grid can be changed here
var height : int = 9;
var map = Array(width, height); // I don't know if i'll use this...
private var i : int;
private var j : int;
var unpressedCell : Transform; // This is the cube that's not jet been pressed
function Awake () {
for(i=0; i<width; i++){ //Instantiate the cubes in the map
for(j=0; j<height; j++){
Instantiate(unpressedCell, Vector3(i*2, j*2, 0), Quaternion.identity);
}
}
}
now i want to know, is this possible to do with playmaker?
how do i do the cycles?
how to increase the i and j variables and use them for the position of the cubes?
how to do this on the awake function?
excuse my english, and thanks in advice