Photoshop & GS

hi

I've been using non copyrighted pictures from Google and then using Photoshop to crop the pictures (usually to get rid of a white background) and then use them in Gamesalad. However although the white boarder does seem to have disappeared when using actions such as collide it still acts as if the border is there therefore the actors don't look like they are touching each other yet apparently they are. I don't know if this is a photoshop problem or a GS problem and I know this is a GS forum, not photoshop. I was just wondering if anyone has experienced the same thing.

Thanks :)

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Actors in GameSalad can have either rectangle/square or circle collision shapes. The default shape is rectangle/square. So regardless of the details of the image, the collision area will be a rectangle unless you change it to a circle. GameSalad does not support custom collision shapes.

    Please only post in a single thread. I'll go ahead and delete your duplicate thread.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • KillerPenguinStudiosKillerPenguinStudios Member Posts: 1,291

    Hey @j_d_campbell98‌,

    I am posting an image example below to give you a better visual on what's going on. Below is a crate with a black border around it. (The black border is a visual) Imagine the black border is not actually there, it's actually nothing, just the photoshop canvas. So basically, the crate itself is 150x150 but the canvas is 175x175. So then you save the image as is as a .png file. When you are colliding with the object in GS you are colliding with the invisible parts of the image (the black border in the image below).

    To properly collide with the crate and not the extra canvas (the black border in the image below) I would either fix it in PhotoShop making the canvas 150x150 (which is the size of the crate) or create a custom hit box in GS, constrain the custom hit box to the crates self.X and self.Y and have objects collide with the custom hit box rather than the crate.

    Hope that helps you better understand what is going on!

  • j_d_campbell98j_d_campbell98 Member, PRO Posts: 12

    Thank you! Sorry about the duplicate thread :)

Sign In or Register to comment.