on the actor you put: Rule: > Key: receives a key press: E is: down Do: > Change Scene: go to next scene
and put you actor on the first Scene
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
What do you mean by inside the actor? Do you mean that your player actor is overlapping with another actor and when you press E, it changes to a different scene?
When hero is in front of the actor(door) and press E change scene. If the hero is outside of the door and press E nothing happens. How can I do that?
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
Well there is no "front of" detection in GameSalad, but I think you mean when it's on one side of the door. You can check the hero's self.position.X or Y and if it's in the right zone (e.g. When self.position.X > 300 AND self.position.X < 360 if the door is at 330 or so) then allow the player to open it if E is pressed. Or you can have an invisible actor near the door and check for collision (and E is pressed). I'll make you a little demo.
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
Comments
on the actor you put:
Rule:
> Key: receives a key press: E is: down
Do:
> Change Scene: go to next scene
and put you actor on the first Scene
When hero is in front of the actor(door) and press E change scene. If the hero is outside of the door and press E nothing happens. How can I do that?
If key E is down and actor is overlapping or colliding with the door,
Then change scene.