Another reset sence

MidNightGamer1125MidNightGamer1125 Member Posts: 50
edited November -1 in Working with GS (Mac)
When my main actor gets hit I want it to reset to its original start position and I want the other actors in the scene to reset back as well. The other actors in the scene are controlled by a spawner and that shouldnt be to hard to get them to stop spawning my problem is the main actor.

I tried to do 2 change attributes for its x and y position when it overlaps and collides with an object, but its glitching or something. It will reset but not destroy the original actor. and my game is touch control so say I get hit at the bottom of the screen the actor will stay at the bottom and another actor pops it in the middle( which is were I want to to reset) and it just flashes like coming and going. I tried a destroy actor and then it just doesn't work all together. IDK ive been trying to fix this for 3 days I need some help please
Thanx as always
JON

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Are you spawning the actor back into the middle?

    You should be doing a change attribute self.position.x and Change attribute self.position.y to make it snap back into the middle.
  • DrGlickertDrGlickert Member Posts: 1,135
    I don't know if I full understand your question or issue, but it sounds like if the actor is on the lower portion you want him to reset to the lower portion and if he's in the high portion you want him to reset to a high position, etc.

    I'd do a rule, that if actor overlaps/collides with object & player self.position.Y > 300 then change attribute to X,Y, OTHERWISE NewRule; if actor overlaps/collides with object & player self.position.Y < 300 & > 200 then change attribute to X,Y, OTHERWISE NewRule; if actor overlaps/collides with object & player self.position.Y < 200 & > 100 then change attribute to X,Y... etc. etc.

    Is that what you're asking?
  • MidNightGamer1125MidNightGamer1125 Member Posts: 50
    I am doing exactly what tenrdrmer said for position x and y. I want it to snap back into the middle. But when I do that its not destroying the actor that got hit you see what I mean. Its snapping back to the middle but its not getting rid of the actor that got hit.
Sign In or Register to comment.