Multiple display groups that are bounded?

Hey all,

I am working on an app that will have different areas on the screen that need to be bounded. The top 2/3 of the screen will be a board, the bottom 1/3 will be status and info. I have setup two display groups for this but how do I bound the top groups drawing to only be within a specific screen coordinate?

On another note, I want to be able to zoom and scroll the top 2/3 as well. Any good samples of this?

Thanks,

Mike
[import]uid: 9827 topic_id: 3064 reply_id: 303064[/import]

Hey Mike

There currently isnt masking so you are going to have to get creative. As you have 2 groups it wont be an issue.

Groups are nothing more than a table of the inserted objects but it also has the added advantage of having an internal coordinate system. This way you can do a group transform, say rotate the group by 90 degrees and all the inner objects rotate around the groups reference. To follow from this the internal coordinates have not changed so if an inner object was going x+1 every frame it sill will be, but now at 90 degrees to what it was.

For your app you need to have the following layout.

  1. Top 2/3 Group
  2. Black square (colour optional) covering bottom 1/3
  3. Bottom 1 3rd Group

Hell, id just stick all this in a master group as well.

Anyway what happens now is that the black square will mask out the 2/3 group is anything spills out of the 2/3rds dimensions. You can actively mask the bottom group but as its stats and stuff it wont matter. You can scale the top group and it will only ever display in the area not covered by the black square.

Matt [import]uid: 5354 topic_id: 3064 reply_id: 8957[/import]

Thanks for the reply.

After thinking about this and doing a quick test it does work. The thing I haven’t tested is what happens to touch areas that are defined? I will have touch areas that will now be masked by the bottom display. Will they not be active unless “on top”? I will also have touch areas on the status portion of the screen.

Well I guess time to experiment some more!

Mike
[import]uid: 9827 topic_id: 3064 reply_id: 8970[/import]