• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

How do I render a sprite so the edges get cut off?

Explorer ,
Dec 20, 2013 Dec 20, 2013

Copy link to clipboard

Copied

Lets say I have a 120x120 sprite, and I only want to render 60x60 of it in a boxed window then display on the stage.

I could probably hack up a solution, but what is the correct way to do this?

Views

642

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 20, 2013 Dec 20, 2013

Copy link to clipboard

Copied

The only place I see this done is actually in the screen rendering size, stuff that is off the screen gets cut off.  How do I do this in a sprite in the middle of the screen without overlapping it with another sprite?         

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 20, 2013 Dec 20, 2013

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines