Two issues with my Jewel game
Nocturne31
Member Posts: 23
Hi all,
1) How do I destroy four particular actors when they meet vertically or horizontally? (4 of the same colour)
2) They seem to be stacking in a weird posture rather than stacking neatly...As in one stops to the other actor's corner with the other side of it hanging out like "-_" unless I aim it and release it in the right position which can be irritating. ...I want them to stack neatly on top of each other in a certain posture..
I hope I'm making sense
Thanks in advance
Comments
To answer your second question:
You want to be able to drop a jewel into a column without aiming, like a game of connect four. Have I understood your question?
So lets say the first pile is in location x=10. If the jewel you are dropping is positioned anywhere between x=5 and x=15, you want it to change its x location to x=10.
In other words:
-Rule: if any of the following
--attribute: (self.position.x) < 15
--attribute: (self.position.x) > 5
-Do:
--change attribute: (self.position.x) to 10
If that doesn't work, maybe try using constrain attribute instead of change attribute.
If your actors are rotating all over the place, make sure you set them all to fixed rotation in the actor attribute area.