Make sure your data is not actually strings. People make this mistake. It will look like 18, but "18" is not the same as 18. Can't be more help without seeing more code.
I haven't bothered in a while - it was just too frustrating. Ashley posted this alternative though:
https://www.scirra.com/blog/ashley/36/c ... nker-board
Develop games in your browser. Powerful, performant & highly capable.
Just make it much larger, for the sake of testing. It's usually an issue with the size.
But you aren't placing the tower - you cancel the place. Add Set InHand to 0 after Tower1.Destroy - you'll see it works again.
You didn't reset InHand, it's still 1.
> At the risk of stepping on toes, I needed a PasteLayer option a while back and always meant to forward you the code. Since you aren't actively working on Paster anymore, I offer this addition, should anyone else find it useful. > > Paster_withPasteLayer.zip > Example > If you go back a few pages, I actually added Paste-Layer, as I needed it also.
> At the risk of stepping on toes, I needed a PasteLayer option a while back and always meant to forward you the code. Since you aren't actively working on Paster anymore, I offer this addition, should anyone else find it useful.
>
> Paster_withPasteLayer.zip
> Example
If you go back a few pages, I actually added Paste-Layer, as I needed it also.
dekman
Try this:
http://www.blackhornettechnologies.com/construct2/behaviours/scrolltoplus_1p4.zip
I added the IsShaking and Magnitude expressions. You can test if shaking is running and get the current magnitude, to see if it is bigger than the next shake value.
—
Actually 15 should have had a password also, so I've fixed that. PW is directly above the link.
It's very small (quick) - are you sure it didn't work?
Post a capx. Your format works - I just tried it. Must be something else, or there is a typo somewhere in the missing (etc) data.
Keep in mind, 0 to 100 is 101 elements, not 100.
Set MusicID to int(random(1, 6))
Random returns a float.
Manual:
random(a, b)
Generate a random float between a and b, including a but not including b.
random(10, 41)
Member since 28 May, 2012