# Need help on some logic - invert y position?

0 favourites
• 4 posts
From the Asset Store
100 items casual and logic games. All icons are of a high quality.
• Hiya,

Does this piece of coding make sense?

Basically, if B17 (player) drops bombs (space) while it is within the event 40's y coordinates, it should add 10 points to Score. That part works.

But if you drop a bomb outside the y coordinates (event 41) it should subtract 10 points from Score. For some reason 'nothing' happens, the score just stays the same.

Thanks in advance for any replies.

Regards R

• ## Try Construct 3

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

Construct 3 users don't see these ads
• hi I think the problem is that you have to make an OR condition

line 40 = do something if between 40 and 120

line 41 = do something if smaller then 40 AND larger then 120 (so never)

should work if you make a blank sub event and move your two b17 lines into it and make it an OR block (right mouse button)

then move the action "subtract" into the or condition.

• try

• I think it works fm4FfanAT! Thanks so much! I'm learning something new every day.

You mean like this right?

Am going to try your way too korbaach, thanks!!

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