Windsurfer25
Windsurfer25

Reputation: 69

What's the best way to group together several shapes?

What is the best way to group together a number of shapes on a canvas? I am making a game map, and I want to be able to move the rectangle shape (the map background) and have the shapes on the map move with the background? Thanks, please be very specific, i'm a noob

Upvotes: 2

Views: 2210

Answers (1)

SLaks
SLaks

Reputation: 887767

Replace the rectangle with a nested Canvas and put all of the "child" shapes in that canvas.

Upvotes: 4

Related Questions