im following the construct 2 runner template and i want to generate some obstacle when the platforms are created.....
but my obstacle is not showing up.
here's the capx file
http: / / bit.ly / 1LPpvs6
remove the space
Develop games in your browser. Powerful, performant & highly capable.
You could create your object_obstacle the same time that the next block is created. Remember that the template you are using, all objects are set to bullet so just do that for the obstacle too.
Once the object has been created, Give it a random x and y position on the created block.
Hope it helps, here is the capx: https://onedrive.live.com/redir?resid=E ... ile%2ccapx
Added an extra bit of randomness to the capx by ryrydawg
His approach is different from the one I suggested in the other thread, but easier to understand..
Put all obstacles on the blocks, gave the blocks a 66% chance of having an obstacle if they are wider than 200px..
https://dl.dropboxusercontent.com/u/485 ... andom.capx
Nice! I like the 66% change addon!
thanks a lot ryrydawg and LittleStain!