My Frustration

This forum is currently in read-only mode.
  • This issue is highlighted in big white letters on a pink background in the comments of the following CAP file!

    http://rapidshare.com/files/90131346/Quarto.cap.html

    What am I doing wrong? Have I missed some crucial piece of Construct logic?

  • [quote:mpbnd39w]Have I missed some crucial piece of Construct logic?

    Yes. You used 'Compare values' in the system object to compare the 'ID' private variable of a piece, instead of using the Piece sprite's own 'Compare private variable' condition.

    'Compare private variable' will check every piece and pick the ones that meet the condition for the event. 'Compare values' does not: it simply works out the first value, the second value, and does a simple comparison without caring about which objects were used to calculate the first and second values. It doesn't do any object picking.

    So you should prefer using the conditions in the object rather than Compare Values, at all times. However, another solution is to add a 'For Each Piece' condition above the Compare Values, which explicitly forces the event to check every Piece instance - however, this is the long way of writing a simple 'Compare private variable' condition!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • cool beans. Thanks Gullen.

  • While the previous fix worked. Its still not consistent for me trying to modify the properties of one sprite and that of all the sprites. Either there is something wrong with my loop. Or again I've missed some logic, but I cant work it out!

    I want each instance of the sprite to load a different image, instead they all load image 16. However the loop does the ID variable correctly.

    All the files are included in the following RAR.

    http://rapidshare.com/files/90288989/Quarto.rar.html

    Whats going on? please assist.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)