New user here with new user questions;
1. How do I add a background to the "Bouncing Ball" example? Every time I try it shows just the background when running it.
2. I can't get the explosion effect to go away after a second.
Can anyone help my Beginner self? Thanks in advance!
When you add the tiled background , right click on it , choose z order and the send to bottom of layer .
For your question 2. make sure your graphic card drivers is up to date as well as the browser you are previewing the example in.
Also it would be nice if you could precise what exact example you are referring to for this question so that we can investigate further about your question.
The Example: Bouncing Balls one.
I don't see explosions in this example, is it something you've added ?
Try this demo Drakmyre
Kyatric- Yes it was.
Drakmyre most welcome
Ok! I checked both of them and you both got it. Any chance you can write down the steps or tell me how to change the shape of what they bounce off of?
Also, I tried to make a Spawn Object whenever they hit something. It works but if it bounces into a corner or off another ball then it will instantly replicate hundreds of times. Any idea how to limit that? Like one per second.
Develop games in your browser. Powerful, performant & highly capable.
I was playing around with the parameters. Now when the game starts the ball disappears. Any ideas?
I don't know what do you want but, here try this demo
Your Ball object has an instance variable called 'Health' that has an initial value of '5'.
The reason it's not there when the program starts is because your Event 5 says, 'If Ball instance value Health = 5 then Destroy ball'.
If you change this to 'Ball Health = 0' then your ball will not be destroyed.
Also, spawning so many balls on collision with the side walls is not a good idea as you will get a cascaid of creates that will eventually crash or lock the browser.
Thanks for the reply Zenox!
I was just wondering how I can make it so the ball has to be clicked x amount of times before it is destroyed.
The spawning of many balls is what I want to prevent. Any ideas?
Ok. I got the clicks working. I just need how to make the ball split and NOT go crazy when it hits a corner.
Lordshiva- Thanks again! You're better at art than I am!