Problem 11

March 31, 2006 at 3:29 am (Game Maker, Uncategorized)

Push a rock

Okay, another one of these thingummyjigs. This one, you have to push a rock around, n'stuff.

Sprite: sprStatue
Solid: true
Visible: true
Depth: 0
Persistent: false
Parent: no parent

Mask: same as sprite

This particular event is to move the statue, and make sure that the statue only moves if there is nothing in its way.

Collision Event with object objCharacter:

for all objCharacter: if expression direction=0 is true

if relative position (24,0) is collision free for Only solid objects

Sprite: sprCharacter
Solid: true
Visible: true
Depth: 0
Persistent: false
Parent: no parent

Mask: same as sprite

Okay, This Object is the thing that pushes the block around, and does basically everything.

The first event is to tell whoever is playing how to use the game.

Create Event:

display message: Use the Imp's Psychic powers to float around an push around the statue.

These following two events are movement events, making the character move.

Key Press Event for Right Key:

set speed to 3 and direction to 0

Key Release Event for Right Key:

start moving in directions 000010000 with speed set to 0

I needed absolutely no help for this one, I'm getting quite independent.

Advertisements

1 Comment

  1. Bill Kerr said,

    no screenshot!

    isn’t your collision event incomplete – what happens after the if statement?

    it’s v. good that you can do them without help

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: