bug or bad code?
UtopianGames
Member Posts: 5,692
Hi Guys,
I have what looks like a strange bug.
I have a ball in my scene 64x64 and when you tap/press it increases in size (touch is pressed: change size: growth rate =2) until it reaches a certain size then it pops (i destroy it) after every 5 seconds a new ball appears but if i have just popped one previous to this the newly spawned ball/s auto increase in size and auto pops without me touching them.
I have tried a lot of things from changing the image before it gets destroyed to constraining width and height before i destroy it.
Any idea how to spawn my new actor and keep it at 64x64 until its touched?
EDIT: just realised if i touch it as the new ball is auto increasing in size it stops the grow and the next spawned ball/s are fine....until i pop it and it goes back to the same old annoying bug.
Thanks,
Darren.
I have what looks like a strange bug.
I have a ball in my scene 64x64 and when you tap/press it increases in size (touch is pressed: change size: growth rate =2) until it reaches a certain size then it pops (i destroy it) after every 5 seconds a new ball appears but if i have just popped one previous to this the newly spawned ball/s auto increase in size and auto pops without me touching them.
I have tried a lot of things from changing the image before it gets destroyed to constraining width and height before i destroy it.
Any idea how to spawn my new actor and keep it at 64x64 until its touched?
EDIT: just realised if i touch it as the new ball is auto increasing in size it stops the grow and the next spawned ball/s are fine....until i pop it and it goes back to the same old annoying bug.
Thanks,
Darren.
Comments
Strange one tbh.
EDIT: just tried it with mouse over and it works fine
Darren.
So:
Rule
ALL
When touch is PRESSED
When Touch is INSIDE
Increase Size...
You might also want to make a global boolean attribute just to lock it down like this:
Create a global attribute called something like OKToResizeBall
Rule
ALL
When touch is PRESSED
When Touch is INSIDE
When OKToResizeBall is FALSE
Change Attribute OKToResizeBall To: TRUE
Increase Size...
Rule
When Touch is RELEASED
When OKToResizeBall is TRUE
Change Attribute OKToResizeBall To: FALSE
I will keep trying.
Thanks guys,
Darren.
Darren.