Im trying to create a brick breaker game similar to that of rainbow reef... Im going to use the same actions and commands but not the squids and stuff.
In the controller object it asks to test instance of biglegs in the room. If equal to 0, you move on to the next room. How would i make it so that if instances of all my bricks are equal to 0 it would move to the next room? My thoughts are to add multiple test instances but im not sure. There are 10 bricks.
Brick Breaker help.
Started by Themurderin, Feb 17 2012 02:41 PM
6 replies to this topic
#1
Posted 17 February 2012 - 02:41 PM
#2
Posted 17 February 2012 - 02:42 PM
Oh yea. this is because i do NOT want to attack an enemy to make it to the next round. Simply not have any bricks left to continue.
#3
Posted 17 February 2012 - 02:51 PM
if(!instance_number(brick)) {
room_goto_next();
}A few things though:
1. This is on the wrong forum... put it in Novice and Intermediate next time
2. No double posting... use the edit button instead
Edited by thegame, 17 February 2012 - 02:53 PM.
#4
Posted 17 February 2012 - 02:56 PM
But would i have to copy paste that for every brick sprite?
#5
Posted 17 February 2012 - 03:04 PM
No. Put it in a controller object (maybe the paddle?) in the step event.
#6
Posted 21 February 2012 - 02:03 PM
So i would have to rename my brick sprites to spr_brick or can i still have spr_brick1-2-3 etc...
#7
Posted 21 February 2012 - 08:59 PM
instance_number has nothing to do with sprites... it just counts the number of objects of that index in the room. Your sprites can be whatever they want.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











