Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Confusing Puzzle

This is really hard to explain, plus i cannot figure out how to upload images, or this would be a lot simpler. Ill explain best i can, but if someone can explain to me how to upload images, i will gladly do so to further explain my problem. But, for now, ill use my keyboard best i can.
Ok, i have a room that is layed out like this:

O = wall
R = rock
B = Movable rock

#
S = Switch Number (#)
1  2  3
S  S  S

OOOOB  O
OOOOR  O
OOOO  BO
OOOOB  O
OOOO  BO
O          O
O          O


Basically this is a rock moving puzzle. Whenever you press Switch 1, movable rocks 1 and 4 (the top and bottom ones) will move to the left or right, depending on their current position. Switch 2 does the same for rocks 2 and 3, the middle two. And switch 3 moves rocks 1 and 3, both movable rocks on the left. I just can't figure out how to event this. I've tried several different ways, and none have worked. If anybody knows how this can be done, please reply.

Thanks in advance, and sorry for improvised description.
 
Your description is perfectly fine I'm not one of those people who play stupid and try not to figure anything out.

Lets get started.

You will need to use Variables it simple really:

STEP ONE:
Make a Parallel Process Event and make a Variable Set Up
http://i35.tinypic.com/ng7m0p.png[/img]

STEP TWO:
http://i35.tinypic.com/nlo2yx.png[/img]
Make 8 Variables Make 2 for each Rock that is moveable and Label one something with X and one with Y

STEP THREE:
http://i36.tinypic.com/2rc7jh0.png[/img]
For each of the moveable rock give Move Rock 1 X Map X and the Move Rock 1 Y  Map Y and Reapeat for each of them Move Rock 2 X Map X and so on.

STEP FOUR:
http://i38.tinypic.com/wh0dgh.png[/img]
Make sure you know where the rock is here is a shot of my where my rock is.

STEP FIVE:
http://i36.tinypic.com/9i4g3c.png[/img]
Make Condition Branch in the Switch#1 take out the check that is on the bottom and set it to Variable Move Rock 1 X Equal to what X is for my screen shot my moving rock X is on 8 and than done. Do the Same thing for but with Y within the Condition Branch. Than within the Y condition Branch move the rock left or right.

In my Screen shot my rock 1 moves to the right and it will change it location to X9 and Y3 so repeat the same thing above and change the number depend on where the rock is located at and within the Y Branch move it move to the left.

Apply the same thing above to any Rock that moves.


HOW TO MAKE SCREEN SHOTS:
Press the Print SCRN Key(IF your using a Keyboard it on the right of the F12 Key) Press it and than open Paint and Press CTRL+V and than it paste a shot on whatever is on your screen. Cut edit blah blah.
 
Wow, thanks! I gotta admit, thats the most descriptive help I've ever gotten on any forum site ever! Flawless system btw (well at least as far as i can see, im no pro)

Major thanks for the help:D
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top