> 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)
No. Why do you care? A foreach deals with each individually.
this trigger can fire with multiple instances picked
On timer
Triggers either regularly, or once off, after a timer that was started with the same tag has reached its duration. NOTE: this trigger can fire with multiple instances picked, if their timers all reach their time in the same tick. This can sometimes work unexpectedly if the actions expect there to be just one instance picked. The workaround is to add a For each condition after this trigger to ensure the actions run once per instance.
Use "For each" to cycle through each item.
Develop games in your browser. Powerful, performant & highly capable.
Copy any referenced objects first. Copy any referenced globals. Copy the events. It might take a few tries to catch everything, but it can be done - I've done it several times.
You also shifted layers around, which got in the way.
http://www.blackhornettechnologies.com/Construct3Stuff/Samples/WordGame_BHT.c3p.zip
(Just remove the .zip)
System:Create can make an array. Destroy it at the end of it's use.
You are mixing the System and Array looping mechanisms. You have to use one or the other. Since most of the code uses loopindex("Y"), switch the CurY code to use loopindex also. Use System"Compare two values": DoorArray.At(loopindex("Y")) not-equal 0, etc...
The default font is mono-spaced, so there is no width data required - it's all the same: 16. It's really not a good example for the spacing feature.
This will generate the data for you.