Array Bug.. is there something i am doing wrong ?

Discussion and feedback on Construct 2

Post » Thu Jan 09, 2014 3:11 am

Hi there,

Found a strange behavior... this time it really look like a bug but again i am not sure. Through all i can say is that the result from a session without debugging and a session with debugging give different results.

Basically i am just iterating in an array. Look at my events... the debugging session generate a TONS of console message.. it shouldn't happen. The hilarous thing is that the debug session show the result correctly ( 2 dot at right corner) but the session without debug put both dot at the same location.. any ideas ? i am a bit desesperate... not the first time i use array and that this result happen. I had to redesign the way i was using a feature to avoid using an array because i had strange problem... but i didn't know it was the array the problem. Now that tell an hint.

My events..
http://www.mediafire.com/view/h8m3wmz0evfn0ff/events.png

With debug... (seem to do an infinite loop...)
http://www.mediafire.com/view/66xvnr8dq63bvet/with_debug.png

Without debug... (act normally. But the result is not right.. put both dot at the same place)
http://www.mediafire.com/view/069l7ii59h4ctll/without_debug.png

Thanks for any help! Greatly appreciated! If you ever seen that before.. please drop a message lol

EDIT: Figured out that the function DrawMinimapOnScreen is called 1 time in normal and called 81 times in debug. That may explain why, at least a part of it... so its not related to arrays.Rushino2014-01-09 03:27:24
B
16
S
5
G
1
Posts: 190
Reputation: 2,489

Post » Thu Jan 09, 2014 3:42 am

Fixed. It was something related to my auto adjusting the hud.. that was called too many time.. the debug session seem to resize the viewport at start which explain why i didnt get the same result in both startup.
B
16
S
5
G
1
Posts: 190
Reputation: 2,489


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 4 guests