When i set the game to letterbox scale my calculations such as set an objects scale to window width/2 are out of sorts. why is this? is there a work around?
Develop games in your browser. Powerful, performant & highly capable.
I am not sure if my suggestion is the best way but you could have image points to spawn the pimples when you spawn an enemy body. then set a variable that store the UID of the body on the pimple. then some type of condition when a pimple pops with x UID minus hit point from body of same UID. this is a possible solution.
Is there a way to expose game sprites so that users can make their own? I was hoping that you could do it using node-webkit.
GG puzzle platform fun!
txori that was awesome! GG
WOWZERS! you are a beast. GG
I was fiddling some more and I think I fixed it!!! hurray doing some more testing to see if I can break it. Its all in the aove capx link
Sorry about that black hornet. I have a new capx up there now. I fiddled around and have it populating array1 with the contents of array 2 but it populates all cells. I just want it to stop once it fills an empty slot.
Thanks again for the help guys.
I am having trouble populating array 1 with the contents of array 2. I am not sure what I am doing incorrectly. Could you peek into my capx? It sounds simple enough but it functions not.
Thanks for the responses Blackhornet and kossglobal!! much appreciated attacking this problem now.
Hi guys, I have uploaded a CAPX with what I am trying to do. I am wondering if there is something case in construct where you can exit out of a loop when a condition is met. Ultimately I want a Plants vs Zombies tower selection mode.
CAPX
Hi guys,
How do I loop through an array and stop looping if a value compared of a cell is equal?
For example:
for loop.length
if cell in x is equal to `foo`
do something
STOP
Here is what I have got so far.
Member since 29 Jan, 2012