When combining two strings to create a variable, Construct 2 sees it as if it were a string, rather than a variable.
If I'm not clear, I have an example.
(Replace int with float, that's probably a mistake)
Focus on the first action, Set Position, specifically on the X axis part of the statement. This is what I see when I read the line.
- Combine the strings, "BlockMoveable(21)" and ".BBoxLeft" to create "BlockMoveable(21).BBoxLeft"
- Convert BlockMoveable(21).BBoxLeft into a float value
- Subtract 2 from the output
I'm expecting a number (X coordinate) to come out of this line but instead, only -2 comes out.
After some staring and thinking, I have concluded that the issue is that "BlockMoveable(21).BBoxLeft" was seen as a string, and therefore equates to nothing when converted to a float value.
So what I'd like to happen is to have "BlockMoveable(21).BBoxLeft" be seen as a variable, rather than a string. Even if what I thought was the issue is wrong, I still want this end result.