-
Invisible walls?
I tried to make a pong like game and I was wondering how I can make an invisible wall so that I don't have to use the commets to keep my paddles from moving to the sides so that they can only move up and down. Oh, and any ideas of how I can reduce the starting speed of the ball and make it so that it can gain speed over time?
-
Re: Invisible walls?
If you are using the 8 direction movement for the paddles you can set it to use only up and down movement by going to the Movement tab (the running man icon), then for Directions click the area which has various numbers by the side. When you do that you will be able to then click the black squares and set the directions you want so just use the up and down arrows.
To hide something like a Active object go to Display Options in the Properties and untick 'Visible at start' to hide it. It will still be seen in the editor but when you run the game it will be invisible. If you want to do it after a event you can select the Visibility > Make Object Invisible action.
For the ball i am guessing you are using the bouncing ball movement. To make it speed up over time make a condition with The Timer > Every and then set it to about 1 second (or another time you want), then for the action got to Movement > Set Speed and click the Retrieve data from an object button. You will see your active in the list so right click that and select Movement > Speed which gets the current speed, you will see it in the expression with something like Speed( "Active" ) and you can then put +1 so it would be Speed( "Active" )+1 or change the number to anything you want. So with this simple example it would increase the speed by 1 every second.
I am using Multimedia Fusion 2 but this should work with The Games Factory 2 - Newgrounds Edition also and will hopefully help. :)