Help Please collision problem
VW_Games
Member Posts: 31
OK, I am making a game that requires you to drag a square through a maze but the square is growing i want the square to be destroyed when it touches the walls but it just grows past that point i don't know what is going on if anyone would help i would be very thankful!
Comments
The basic idea is a rule that says When actor collides with actor [wall] --> Destroy actor but without seeing your rules I'm not sure why it's not working for you.
Also, how are you making the square grow? Which behavior are you using?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
When actor receives event -> collide/overlap with actor-> actor type-> walls then destroy this actor
I am using the basic change size with a .01 growth rate
Try using a timer instead.
Every 0.1 seconds:
Change Attribute > self.size.Width to self.size.Width+1
Change Attribute > self.size.Height to self.size.Height+1