Actors, Attributes and Rules OH MY! If anyone is in over the holidays help is needed :-)

muveemuttmuveemutt Member Posts: 83
edited December 2011 in Working with GS (Mac)
I am tied up on exactly how making a new attribute works. For instance, I set up an attribute that is called "Go Through" my goal is to get my actor to go through a wall temporarily and then not be able to go back the same way. I kind of get the feeling that I should be setting a rule (or actor) that says If...actor touches this point, Then... he may pass the first time, AND (after a certain amount of time has passed) actor can not go through. Is that right or am I missing something? If it is right, how in the world would I do that, if wrong, how do I make it right?

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Set Go trhough to true. In the wall have this rule:

    If game.GoThrough is false collide with hero

    Then it's up to you to trigger the attribute. Let;s say you have a lever actor that your hero must activate. In your lever actor have this rule:

    when overlaps with hero
    change attribute game.GoThrough to true

    Now when the hero tries to go through the wall he/she will not collide and be able to go through
  • muveemuttmuveemutt Member Posts: 83
    @scitunes Thanks... I'll try it now
  • muveemuttmuveemutt Member Posts: 83
    @scitunes That worked but not with the way I have my walls set up... I am gonna try to tweak my solid actor a little with this same concept and see it that worked. thanks again for the help.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited December 2011
    @muveemutt checkout gshelper.com Tshirtbooth has a video about passing through one side of a platform and not the other this will work the same with your walls.



  • muveemuttmuveemutt Member Posts: 83
    Thanks! I looked everywhere for that... I couldn't find anything ( didn't know the terminology to search for this one) I was looking for go through and move through and jump through WALLS. Couldn't find it so I just moved on. Im using some code from a template. Still can't go through and although I'd like to, I don't want to mess up my actor who is pre coded to the gills... except for that ability. I'm afraid adding this now would mean starting ALL OVER, but thank you so much for finding that. I will keep it for future reference :-) (Note to self... they are platforms... not walls)
  • muveemuttmuveemutt Member Posts: 83
  • muveemuttmuveemutt Member Posts: 83
    Since I am using the actors Solid and Ground from the platformer template, just placing the "cloud platform" from here, anywhere in the scene completely disrupts the whole scene. The scene won't play at all. It works if I start from scratch but not with the Solid and Ground attributes I am using from a template. I guess maybe they contradict each other. I even tried moving them into the rule with the constraints that were already in place. At that point I was able to get a 'partial' scene on the test run but my player wouldn't budge until I removed the new actor "cloud platform". :-( If you have any other ideas, I'd surely entertain them. And thanks @dsouza41 and @scitunes :-) I know you guys don't have to help so it's really cool that you take the time.
Sign In or Register to comment.