ifiller game logic problem
morphinegamingmachine
Member, PRO Posts: 449
timer .5
if overlap with other balls
(empty)
otherwise: change size h to h*1.1, change size w to w*1.1
works great and stops expanding when it hits another actor
but if i do
touch is pressed:
timer .5
if overlap with other balls
(empty)
otherwise: change size h to h*1.1, change size w to w*1.1
it keeps expanding forever
whats wrong with my logic??
if overlap with other balls
(empty)
otherwise: change size h to h*1.1, change size w to w*1.1
works great and stops expanding when it hits another actor
but if i do
touch is pressed:
timer .5
if overlap with other balls
(empty)
otherwise: change size h to h*1.1, change size w to w*1.1
it keeps expanding forever
whats wrong with my logic??
Comments
you are telling it that when it does not overlap or collides with the balls keep expanding
Thats all i can get out of this..
hope this helps
<$img src="URL">
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
when touch is pressed it keep expanding even when colliding/overlaping with another actor "wall"
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
actor must be the motion to coliding with anything, with out motion it doesnt recognize the collision/overlap. aka if the ball and the wall are stationary it will not work, even if the ball is set to colide with he wall and it sizes up an d touches or overlaps while both have no movement
stationary actors should still recognize a collision or overlap with other actors right??
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
The problem is both actors have movable checked, but neither one have movement as in zero velocity x zero velocity y for both actors, it's just expanding and does not register a collision
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User