[Bug?] Object wont evaluate against itself and differentiate

Bugs will be moved here once resolved.

Post » Fri May 29, 2015 9:29 pm

Problem Description

Sorting logic using values doesnt work. As you cant compare a value with itself from the same object?

This logic does not work:

ObjectThing <Value1> < ObjectThing.<Value1>

<Do something>

Making it a For Each loop does not work, its not comparing itself with itself. Not even storing the value in a second value such as:

ObjectThing <Value1> < ObjectThing.<Value2>

<Do something>


Family associations this way does not work (ObjectFamilyThing.<Value>, etc)

This isnt the only game engine ive used that had this problem, so if this is on purpose or a limitation just let me know and I'll understand, it explains alot.


Attach a Capx

ObjectThing <Value1> < ObjectThing.<Value1>

<Do something>

'<' A Difference but not an equality.


Description of Capx

The logic used.

Steps to Reproduce Bug
    ObjectThing <Value1> < ObjectThing.<Value1>

    <Do something>

    An object compared to itself with a greater or less value compared to another object of its same type
    with or without a for each loop and if it is different do something, ANYTHING.

Observed Result
Nothing. As in the logic is faulty for some reason but I cant seem to think or know why. It is of the same object class I would assume and be able to compare to itself.

Expected Result

I expect the instance to compare its own value with a list of other instances even if they are of its same class or family, and then evaluate based on its value. As it would with any other objects. But it doesnt.

Affected Browsers
    All

Operating System and Service Pack
Windows 8

Construct 2 Version ID
Most recent.
B
4
Posts: 33
Reputation: 266

Post » Fri May 29, 2015 10:02 pm

You should make a capx showing what you are doing.
Post it in the how do I section with specifics on what you want to do.
Its not exactly easy to compare multiple instances, but not impossible either.
Image ImageImage
B
172
S
50
G
183
Posts: 8,439
Reputation: 115,597

Post » Fri May 29, 2015 10:19 pm

newt wrote:You should make a capx showing what you are doing.
Post it in the how do I section with specifics on what you want to do.
Its not exactly easy to compare multiple instances, but not impossible either.


I didnt make a capx because it literally does nothing when you compare a value's instance to a value of itself.

Meaning this does not work: ObjectSprite Value1 < ObjectSprite Value 1 <Do Something>
it wont ever do anything, even with a for each loop, even compared to other values. It wont compare against itself with other instances. This command here will not work.

ObjectSprite Value 1 less than ObjectSprite Value 1 does not work. Neither does the value changed. It wont evaluate itself.
B
4
Posts: 33
Reputation: 266

Post » Fri May 29, 2015 10:49 pm

Yes, and since you haven't said exactly what you want to accomplish, and exactly what you are doing currently, nobody can tell you what to do.
Image ImageImage
B
172
S
50
G
183
Posts: 8,439
Reputation: 115,597

Post » Fri May 29, 2015 10:55 pm

newt wrote:Yes, and since you haven't said exactly what you want to accomplish, and exactly what you are doing currently, nobody can tell you what to do.


Ok, just so were clear, the command of: itself evaluating itself, or types of itself, does not work? And is also not a bug?
B
4
Posts: 33
Reputation: 266

Post » Fri May 29, 2015 11:32 pm

Well lets just say there's a reason that capx's are mandatory for bug reports.
That being most times it user error.
Image ImageImage
B
172
S
50
G
183
Posts: 8,439
Reputation: 115,597

Post » Fri Jun 05, 2015 11:24 am

Closing, a .capx is required, please read the bug report requirements.
Scirra Founder
B
402
S
238
G
89
Posts: 24,637
Reputation: 196,071


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest