TASK 4

September 21, 2006

Problem 4) When a bullet hits a character, the character explodes and the explosion then disappears. Provide information about how to play the demonstration in Game Information.

This problem is simple.
1. create a explode sprite and name it explode.

2. add it to object and press OK.

thats the first few steps. Now:

1. click on your enemy object properties and make collision event.

2. select the bullet and in main 1 tab drag change instance.

3. type in your explode sprite name and click OK.

your done.
this problem was easy enough to work out by myself and i didn’t need to use the hints provided.

TASK 1

September 21, 2006

Problem 1:A ball bounces around a room and its direction is random. When the demo starts you can’t predict in which direction the ball will go. When the ball hits the walls you can’t predict in which direction the ball will go.

Solution: it didn’t take me that long to solve this problem because i did it last year. it’s pretty easy.
1. first create a room.
2. add ball sprites and object.
3. in the balls object window create event.
4. in the move tab select and drag the blue arrows into the actions window.
5. set the direction to random(360) and speed is up to you.
6. add collision event and choose wall.
7. in move tab select and drag bounce against objects into the actions window and click okay.
8. click ok to close object properties.
9. select the room and put the balls in the room.
10. run the game to test it.

this was easy enough for me to do it by my self so you shouldn’t have any problem.

i hope that was useful to you!

TASK 3

September 21, 2006

Information about object: OBJ_PLANE

Sprite: sprite0

Solid: false

Visible: true

Depth: 0

Persistent: false

Parent: <no parent>

Mask: <same as sprite>

Collision Event with object OBJ_WALL:

start moving in directions 000010000 with speed set to 0

Key Press Event for <Space> Key:

if sprite_index is equal to object0

create instance of object OBJ_BULLET at relative position (1,1) with speed 5 in direction 90

Key Press Event for <Left> Key:

start moving in directions 000100000 with speed set to 4

Key Press Event for <Right> Key:

start moving in directions 000001000 with speed set to 4

Key Release Event for <Left> Key:

start moving in directions 000010000 with speed set to 0

Key Release Event for <Right> Key:

start moving in directions 000010000 with speed set to 0

______________________________________________________

Information about object: OBJ_WALL

Sprite: sprite1

Solid: true

Visible: true

Depth: 0

Persistent: false

Parent: <no parent>

Mask: <same as sprite>

Collision Event with object OBJ_WALL:

start moving in directions 000010000 with speed set to 0

______________________________________________________

Information about object: OBJ_BULLET

Sprite: sprite2

Solid: false

Visible: true

Depth: 0

Persistent: false

Parent: <no parent>

Mask: <same as sprite>

______________________________________________________

TASK 12

September 21, 2006

Information about object: obj_paddle_left

Sprite: spr_paddle

Solid: true

Visible: true

Depth: 0

Persistent: false

Parent: <no parent>

Mask: <same as sprite>

Collision Event with object obj_wall:

bounce not precisely against solid objects

Keyboard Event for <no key> Key:

start moving in directions 000010000 with speed set to 0

Keyboard Event for <Shift> Key:

start moving in directions 000000010 with speed set to 5

Keyboard Event for <Ctrl> Key:

start moving in directions 010000000 with speed set to 5

______________________________________________________

Information about object: obj_paddle_right

Sprite: spr_paddle

Solid: true

Visible: true

Depth: 0

Persistent: false

Parent: <no parent>

Mask: <same as sprite>

Collision Event with object obj_wall:

bounce not precisely against solid objects

Keyboard Event for <no key> Key:

start moving in directions 000010000 with speed set to 0

Keyboard Event for <Up> Key:

start moving in directions 000000010 with speed set to 5

Keyboard Event for <Down> Key:

start moving in directions 010000000 with speed set to 5

______________________________________________________

Information about object: obje_ball

Sprite: spr_ball

Solid: false

Visible: true

Depth: 0

Persistent: false

Parent: <no parent>

Mask: <same as sprite>

Create Event:

set Alarm 0 to 60

Alarm Event for alarm 0:

start moving in directions 101000101 with speed set to 5

Collision Event with object obj_paddle_left:

bounce not precisely against solid objects

play sound sound_boink; looping: false

Collision Event with object obj_paddle_right:

bounce not precisely against solid objects

play sound sound_boink; looping: false

Collision Event with object obj_wall:

bounce not precisely against solid objects

Other Event: Outside Room:

destroy the instance

create instance of object obje_ball at position (320,240)

play sound sound_zap; looping: false

______________________________________________________

Information about object: obj_wall

Sprite: spr_wall

Solid: true

Visible: true

Depth: 0

Persistent: false

Parent: <no parent>

Mask: <same as sprite>

______________________________________________________

Hello world!

August 25, 2006

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!


Follow

Get every new post delivered to your Inbox.