Illusion of Motion

Room Moving

Create a new room. Go to the backgrounds tab and...

  • set the background image to back_water for now
  • set Vert. Speed to 2

Islands

Obj: island1

Create object island 1; set the sprite and set the depth to 10000, to make sure it's drawn first, all other objects stay above the islands.

Add the Create event so when the room loads, have it moving down at the same speed as the room, Vertical Speed 2.

Add a Step event to check if the island is out of the bottom of the room, to jump to a spot before the top of the room...

  • Test Variable: if variable y is larger than the room_height (if the island is lower than the bottom of the room), then
  • Jump to Position where x = random(room_width) and y = -65 (so it won't come in at the same horizontal position to make it seem more random; and it starts totally above the room so it "slides" in).

Obj: island2, island3

For island2 and island3, just duplicate island1 and change the names and sprites.


Place islands in Room

First, change the grid size to 80 x 80.

  1. Place 2 of each type of island object at different heights in the room, in alternating rows like this... 

Save your game and test it out. 

  • Does the water move?
  • Do the islands move down with the water together?
  • when an island leaves the bottom of the room, does it reappear at the top?