Dumb sh... stuff you have done in Constuct - Post here

For questions about using Classic.

Post » Fri Aug 27, 2010 9:50 am

I just found a major snafu that has been there since probably around the time I started using Construct, as I found it way back in my backups from weeks ago. (I've only been using construct about 1-2 months). It was probably the result of me experimenting with Construct itself, before I had any idea how some features work.


The idea for this thread is to create a reference of silly mistakes that will probably help others, and will be a general source of amusement also.

Here are some of my bonehead mistakes:
Put the keyboard/mouse object as a container with another object. For months I thought it Construct was tying player control to the first created controllable object. I made all kinds of work arounds to keep that object alive so that keyboard controls would still be there on the next run. *facepalm*
(the problem here is that when the object is destroyed, the keyboard/mouse object is also destroyed due to the container behaviour - and hence no kb/m control).

Somehow managed to put random(50) into the initial value of a private variable. This crashed the hell out of Construct but ONLY after I'd uncovered and fixed another bug that was essentially suppressing this.

Inappropriate use of 'while's
Never use while, unless you ABSOLUTELY understand exactly what it does and why it's there.
Granted though, I was experimenting mostly but I found one in there that was eating a lot of CPU time and causing issues because I'd forgotten about it. Removing it had no effect on the behaviour of the items but freed up quite a bit of CPU time.


Post your own crazy Construct screwups.
B
2
G
2
Posts: 42
Reputation: 734

Post » Fri Aug 27, 2010 10:45 am

I thought you meant the C programming language, and was about to rant about memory leaks and pointers.
B
2
S
2
G
3
Posts: 193
Reputation: 1,636

Post » Fri Aug 27, 2010 12:48 pm

fixed :)
B
2
G
2
Posts: 42
Reputation: 734

Post » Fri Aug 27, 2010 2:08 pm

Not sure if this can be classed as a silly mistake, but something to be avoided.

When I first started using Construct, I sometimes had 2 or 3 different projects open at the same time.
This would almost always cause Construct to crash to the desktop without warning, and as well as losing the work you'd done since the last save, it occasionally corrupted the file.

I don't know if this is fixed in later versions of Construct, or whether it was something specific to my systems, but it's something worth bearing in mind, and a good reason to keep a steady flow of backups.

Krush.
B
2
S
2
G
3
Posts: 406
Reputation: 2,062


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests