Change color/door restriction.
bdoubleu15
Member Posts: 5
Hey guys,
So I've been working at this game for a couple of days now. I've tried to get this to work and sometimes I'll get one aspect but not another.
Basically I want my actor, say actor 1 to change colours as it passes through doors. But I only want the actor to be able to pass through the door if the door is the same colour as the actor, and if he tries to go through a different colour door it doesn't work. So once he gets through the same color door the actor will change colours. And move on.
Hope I made that clear. I've tried several different methods but I can't get it.
I appreciate any help.
Comments
What methods have you tried?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Well I'm new obviously, so I was trying pretty dumb ways probably. But I couldn't find a ''when actor collides with other actor, actor one changes color', So I had actor 1 go off the game after it went through the door, with a different color image of the same actor spawn in that same location. It was confusing and didn't work well obviously. As for not being able to go through the door unless the actor and door are the same color, I haven't found a method that's worked at all.
Thank you.
Here's a demo but I made it in Mac Creator so you'll need to Google convert gamesalad mac to windows to be able to open it.
Right arrow key to move. Click on the color squares at the bottom-right to change the player actor's color.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Unreal. Thanks a lot.
You're welcome!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I'm back.
So I've just been playing with it a bit today, I haven't had much time. I have the door restrictions set nicely. And I have it set so that when the actor collides with the door he "switches color". I just have "when actor collides with door, change image" then I have the same actor with a different color come up. However the problem I'm facing now is; you know how your actor or imagine is surrounded by like an outline box or rectangle? So whats happening is that when the doors outline and the actors outline (the outline has the line on it so you can rotate the angle and stuff like that, thats the thing I'm talking about!) touch, the actor hasn't reached the door yet but is still switching color, because technically they are touching I guess. Is there a way to get rid of the outline or shrink it down or something like that?
Thank you!
Actor sizes determine collision areas regardless of the image used. Actors can have rectangle or circle collision shapes. Make sure to crop your images as much as possible.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Got it Thanks