Jump to content

Change width/height of sprite without texture scaling?


Akis
 Share

Recommended Posts

How can I change the texture width/height but without any scaling of the texture in it? Basically, I just want to "cut" my sprite texture.

 

If I update the 'width' or 'height' property, this will change the scaling. If I change the '_width' or '_height', it won't change anything :/

 

 

 

//edit: Hmm it seems I can achieve it by modifying the texture instead of the sprite.. The issue is that it will definitely altered the texture so if others sprites use the same texture, it won't work as expected :s

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...