[r168]Overlapping after collision

Bugs will be moved here once resolved.

Post » Mon Apr 28, 2014 10:42 am

Problem Description
If an overlapping condition was put as a sub-event of collision event and you tired to get the instance variable of the overlapped sprite like this picture,
Image
you'll get error message after the event being triggered:
Image

Attach a Capx
https://dl.dropboxusercontent.com/u/497 ... stvar.capx

Description of Capx
You'll get an error message when the ball drops to the layout bottom.

Steps to Reproduce Bug
Run the capx and wait 1 sec for the ball drops.

Affected Browsers
  • Chrome: YES
  • FireFox: YES

Operating System and Service Pack
Win7sp1

Construct 2 Version ID
r168
B
119
S
30
G
8
Posts: 214
Reputation: 13,160

Post » Mon Apr 28, 2014 5:14 pm

Problem is Browser object. Delete it and do something else in it and it will work. It seams, browser object cannot convert number type to string type (probably a bug in browser plugin).
B
11
S
2
G
1
Posts: 25
Reputation: 1,685

Post » Tue Apr 29, 2014 12:48 am

onurdogan07 wrote:Problem is Browser object. Delete it and do something else in it and it will work. It seams, browser object cannot convert number type to string type (probably a bug in browser plugin).


You may try to create a text object in this capx and replace the "Browser-Log" by "Text-set text",
print the instance variable by text, will get the same error message.

On the other hand, if you try to print other expressions from this overlapped sprite; eg. Animationframe, angle, etc, it will work well. It looks like only instance variable hurts.
B
119
S
30
G
8
Posts: 214
Reputation: 13,160

Post » Tue Apr 29, 2014 6:59 am

gonzdevour wrote:
onurdogan07 wrote:Problem is Browser object. Delete it and do something else in it and it will work. It seams, browser object cannot convert number type to string type (probably a bug in browser plugin).


You may try to create a text object in this capx and replace the "Browser-Log" by "Text-set text",
print the instance variable by text, will get the same error message.

On the other hand, if you try to print other expressions from this overlapped sprite; eg. Animationframe, angle, etc, it will work well. It looks like only instance variable hurts.


Yes, you are right, it seams like that. :(
B
11
S
2
G
1
Posts: 25
Reputation: 1,685

Post » Fri May 02, 2014 4:27 pm

Thanks, good catch. Should be fixed in the next build.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests