GMLscripts.com

Discuss and collaborate on GML scripts
Invert

You are not logged in.

#1 2013-04-30 10:20:28

Bortasz
Member
Registered: 2013-04-30
Posts: 1

How change room

Hello I Try to create a game for my mom. Clone of Arcanoid.

My problem is that I don't know how to change room when all bricks are destroy.

Can anybody help me?

Offline

#2 2013-04-30 14:13:03

xot
Administrator
Registered: 2007-08-18
Posts: 1,239

Re: How change room

Welcome to the forums, Bortasz.

One way to solve your problem would be to count the number of bricks each step, and when it reaches zero, go to the next room.

STEP EVENT:

Expandif (instance_number(objBrick) == 0) {
    room_goto_next();
}

Abusing forum power since 1986.

Offline

Board footer

Powered by FluxBB