PRISON BREAK
ISHAAN P
AGENDA
OBJECTIVE
SPRITES USED
Primary Gun
[M4LMG]
Secondary Gun [Renetti Pistol]
Bed in Cell
Weapons inside Bed
Inventory for weapons
Pistol
Primary Gun
SPRITES USED (CONTD.)
Jail Warden
Bullet
PLAYER SPRITE - COSTUMES
Primary Gun
[M4LMG]
Secondary Gun [Renetti Pistol]
Player
BED SPRITE - COSTUMES
Bed in Cell
Weapons inside Bed
BACKGROUNDS USED
Cell 1
Cell 2
Cell 3
Walking
Area
For
Warden
Door
Door
Walking
Area
For
Warden
Prison
Introductory Messages
Prisoner from Cell 2 will try to break out of prison
Prisoners from Cell1 and Cell 3 are not included in this presentation
CODE FOR BACKGROUND
This code will explain the situation of the game to the viewers
Message1 in the code
CODE FOR BED SPRITE AND PLAYER MOVEMENT
Use this code for the movement of the player
Make a costume named Bed
Then add this code to Bed sprite
CODE FOR PLAYER MOVEMENT – CELL RESTRICTION
The following code will restrict the player to his cell, until the player discovers the weaponry.
Note:
If Loop, Repeat Until and Forever are control blocks used.
The player gets restricted between these coordinates, indicating the cell boundary.
CODE FOR PLAYER MOVEMENT – CELL OPENED
Remember the broadcast message of Guns! add this code to It
Remember this from the previous slide? Now since the escape prison switch is set to 1, this code stops getting executed.
COSTUME FOR GUNS IN THE BED
Remember the bed in the slide 6? Make another costume when the player receives the broadcast of the guns.
[Any picture of a gun for the costume can be used.☺]
INVENTORY
INVENTORY – CONTD.
Code for Inventory Sprite to Show / Hide
Code to check the Key Pressed
COSTUMES FOR GUNS IN INVENTORY
We need to show the guns in the inventory, so make the respective costumes and show them.
CODE FOR SELECTING THE GUNS
Then add the same code for both the sprites In their respective place
Make sure you have a separate broadcast message for each.
The game needs a warden.
Make the Warden sprite as shown below
CODE FOR WARDEN
Add the following part of the code to the Warden sprite
CODE FOR BULLET
Selection of the Guns
is getting performed,
and the bullet accordingly.
Add the code to make the right sound during the bullet fire.
Play the sound until done block is used from sound section.
CODE FOR BULLET SOUND
Add the code for the bullet to actually go from the gun.
CODE FOR BULLET MOVEMENT
CODE FOR VARIABLE CONTROL
This code explains that if the Warden’s health reaches to zero or less than zero, it sends a broadcast message to end the game.
CODE FOR VARIABLE CONTROL
CODE FOR FINISHING GAME
Code for Background
Code for Player
This code gets executed when the player gets discovered / caught by the Warden
This code gets executed when the player escapes successfully from the prison.
Now, Play the game; Also use it for your reference