Maybe try putting the detectors in a family and check for your objects overlapping the family rather than each independent detector sprite?
A for loop will work, like:
Sprite: Set Animation Speed: 0
For "loopindex" from 0 to 40:
Create Sprite: X= 100; Y=50*loopindex + 10
Sprite: Set frame: loopindex
Make sure your buttons are all on the same sprite as independent animation frames
You have to match the "Width" and "Height" parameters in your "SquareTx" object to the size and shape of your 'tile' Sprite. If you don't you will have gaps like that.
For instance, if your Height and Width parameters are 60 and 60 (in px), then your tile needs to be 60x60 px.
What you want is called a "hash", it is a random string generated using a seed input. You can use the CB Hash plugin to do this easily in C2.
You can just use random(1000000) as a seed if you need a randomized hash.
Yea, there are other more sophisticated ways of doing it too, like what R0j0hound pointed out. You can use statistical distributions to change the way random functions pull indices out.
I was wondering, are you able to use an array to randomly choose a picture, so that they aren't always in the same sequence?
Yea, you should be able to do that. Images on HTML5 websites are just URLs which you can build dynamically on the fly, so you could have an array with image names, then just randomly select from the array to build the URL, like:
Load image from URL: protocol & serverDomain & imageDirectory & ImageArray.At(random(ImageArray.Width)-1) and have it load a random image from your array.
Develop games in your browser. Powerful, performant & highly capable.
Yea, everything has a learning curve, just keep pressing. We are here to help you over stumps.
Remember that indices (in arrays) start 0.
The simple stupid way to change the probabilities of any given entry in a straight list is to have multiple entries of each one you want to appear more.
Like:
[cat]],[[cat]],[[dog]],[[human]],[[human]],[[human]],[[human]]
then just use Array.At(random(Array.Width))
Rex is awesome, and I have much love for his plugins.
And yes I'm aware it's a morbid game... It's an awareness game use in West Africa by the Red Cross to teach people how to protect themvelse from Ebola. So I guess Construct and game making can also save lives
And yes I'm aware it's a morbid game... It's an awareness game use in West Africa by the Red Cross to teach people how to protect themvelse from Ebola.
So I guess Construct and game making can also save lives
I am going to ask another stupid question.... how many people in West Africa even have computers/the internet to play this game?
Yea, I've never worked with cfm, but it sounds shady.
You should be able to use the LayerScale's for each layer to transform his position into the absolute reference frame before transforming it into his new layer's reference frame.
I am not 100% how this math would go, but something like:
NewPlayer.X = Player.X / LayerScale("Layer 1") * LayerScale("Layer 2")
Partition your rope into lots of little pieces and destroy those pieces from each end in.
http://gamedevelopment.tutsplus.com/tut ... amedev-519 - this goes with your net question too.... honestly you should have combined these. They are basically identical questions.
https://www.khanacademy.org/computer-pr ... 8438376448
http://charly-studio.com/blog/html5-rop ... elaxation/
https://www.google.com/search?q=javascr ... 8&oe=utf-8
Member since 4 Mar, 2014