reset password
Author Message
hcainho
Posts: 8
Posted 14:22 Oct 11, 2017 |

Anyone know how to assign an image to appear multiple times on a Pane? I know how to do so when the number of images needed is known, but I am a little lost on how to do this when I need the amount of necessary images to be created at runtime.

Last edited by hcainho at 14:22 Oct 11, 2017.
kknaur
Posts: 540
Posted 17:54 Oct 11, 2017 |

So you don't know how many images to use?

hcainho
Posts: 8
Posted 17:58 Oct 11, 2017 |

No, because the number of images will depend on the size of the maze.

kknaur
Posts: 540
Posted 18:00 Oct 11, 2017 |

Oh well, you know the size of the maze.  If you store the maze in a 2D array then you can always find the number of rows and columns in the maze, and therefore know the number of images to copy.

hcainho
Posts: 8
Posted 12:22 Oct 12, 2017 |

Thank you for your help!