Strange behaviour with repeat loop

Post your own tutorials, guides and demos.

Post » Tue Aug 26, 2008 11:50 pm

Hello. I noticed this strange behavior. I can't find any flaw in my eventing, it's propably an error in Construct... I included explanation in comment in .cap, but I summarize:

There is three events, one which creates the object, one which modifies the position and angle and one which modifies them back to the original position. On that tick an object is created, only ONE of these modifying events performs, although both should.
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

Post » Thu Sep 04, 2008 4:52 pm

I'm sorry to bump this but... well, maybe I should just post this to bug tracker and stop whining in this thread :D
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

Post » Thu Sep 04, 2008 5:13 pm

I have actually investigated this - created objects don't become fully "real" until the next event tick - with the exceptions of loops like Repeat, which make sure created objects are up-to-date. It's a bit of a weird way to handle things, so I'll try making it more sensible for the next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Sep 04, 2008 5:32 pm

This is fixed in the next build - it works the same both ways now! (It stays on top of the red object)
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 2 guests