problem with 'Change Attribute'
vipremju
Member Posts: 3
Hi,
I have 2 copies of an actor (A) than change an scene attribute when overlaps o collide with other actor (B).
Then, the actor B change their size with the scene attribute asigned in the other step, but only ocurrs when overlaps with the first actor, but no with the other. Any ideas?
Thanks.
I have 2 copies of an actor (A) than change an scene attribute when overlaps o collide with other actor (B).
Then, the actor B change their size with the scene attribute asigned in the other step, but only ocurrs when overlaps with the first actor, but no with the other. Any ideas?
Thanks.
Comments
And also, why create a new actor? The 2 actors A must have the same attibutes and rules.
But that's a really bad way to program. Instead, either spawn an actor each time you need a new copy or just option-drag the actor on the scene to create an exact copy that will function with a single collision rule.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I've two actor instances with different names and with their own collision rules.
Maybe I am starting wrong.
All I want is: whenever an instance of actor A is placed on top of actor B, the latter increases slightly in size. How would you do you?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Have a collision rule on the one you want to get bigger read "When collide with tag (actor 1) then Timer[For 1s] (scale=1). This will cause the second actor to increase in size when colliding.
Will actor 1 stay on top of actor 2? if so you may need to have some type of "on/off" rule setup so it doesnt keep increasing insize. Or turn the time to run to completion.
Dwarf Miner