Bughunt

For questions about using Classic.

Post » Wed Jan 09, 2008 3:16 pm

Woops, 'ceil' is fixed for next build. In the mean time, a workaround is that floor(N + 0.5) is equivalent to ceil(N), so use that. Random works like so:

random(N) generates 0-N not including N, i.e. random(4) could give 0, 1, 2 or 3. random(1.0) generates a random floating point (decimal) value between 0 and 1, so you can also say 50 * random(1.0), which will give you literally any number between 0 and 50.

For random between two numbers just add to a random number:
50 + random(50) gives between 50-100 for example.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Wed Jan 09, 2008 3:18 pm

Many many thanks! I'm really starting to get comfortable working with Construct and I will try my best at helping you find bugs. :)
B
2
S
1
G
4
Posts: 33
Reputation: 1,266

Post » Wed Jan 09, 2008 3:51 pm

For some reason, subevents affect FPS very much.
If I have:
+On 1
+On a :
+On b :

it is alot slower than this:
+On 1
+On a :

+On 1
+On b :
B
2
S
1
G
4
Posts: 33
Reputation: 1,266

Post » Wed Jan 09, 2008 4:02 pm

That shouldn't be true. How are you measuring FPS (the built in one?), and what kind of difference do you get? Can you send me a .cap that demonstrates one being slower than the other to ashley@scirra.com? Thanks.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Wed Jan 09, 2008 4:37 pm

I sent an email.
B
2
S
1
G
4
Posts: 33
Reputation: 1,266

Post » Fri Jan 11, 2008 2:18 pm

Another fps-related issue:
Just adding fade to the possible transistions and the fps drops...
B
2
S
1
G
4
Posts: 33
Reputation: 1,266

Post » Fri Jan 11, 2008 5:58 pm

I can't seem to get system variables like DisplayHeight and ScrollXRight to work. I would think them to be Display.Height and ScrollX.Right, but that's not what shows up in the expression when I click for it at the bottom. Neither are allowed, though sometimes the expression shows green when I click through the windows for them, but it tells me it's all wrong when I try to hit finish.
B
4
S
2
G
6
Posts: 161
Reputation: 2,597

Post » Fri Jan 11, 2008 6:51 pm

I renamed WindowWidth and WindowHeight to DisplayWidth and DisplayHeight a while ago but forgot to update the type checker - thanks for spotting that, fixed. As for ScrollXRight, works fine here.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Fri Jan 11, 2008 8:08 pm

Another thing: We have Write to INI, but do we have Read from INI?
B
2
S
1
G
4
Posts: 33
Reputation: 1,266

Post » Fri Jan 11, 2008 8:50 pm

Use the INI object for all that.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

PreviousNext

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest