Creation of Maze (labyrinth) with a character you control, and another which follows you (VBA)

73 views Asked by At

like the title suggest, I would like to create two fairly simple mazes (labyrinths) using VBA on Excel.

On the first I only have my character which I have to move from a point to another in order to escape. I want the character to enter from the top left and to be able to exit from the bottom right.

On the second maze, I would like another maze, but this time, my character is closely followed by another one (which is supposed to be a monster which tries to eat my character).

If possible, I would like both characters to have an icon (like the pixel head of person for my character and the head of a monster for the character which follows in the second maze)

Thank you for your help and suggestions

I really am struggling to simple things on VBA, I just would like to make 2 simple mazes as stated. If anyone could point me to which direction I should take it would be very simple.

1

There are 1 answers

4
tnavidi On

Start out using "Record Macro". Once you get a little used to the syntaxes, look up articles about avoiding the use of select and selection, and start looking into for loops. Use 'Option Explicit at the first line, which makes it easier to avoid typos.