[SOLVED] Can someone please help me organize my logic?

Discussion and feedback on Construct 2

Post » Wed Apr 26, 2017 10:32 am

Message: SyberHasky can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hi. I decided to try to replicate the popular SUPERHOTline Miami game, made in Construct. My problem is with the picking up/throwing weapon mechanic. Basically, I have this:

if Right clicked, check to see if and what weapon is equipped. If yes, throw said weapon. If none, check if the player is overlapping with any weapons on the ground, which then causes him to pick it up. The problem is that the program then thinks he has a weapon equipped, and because it's still inside of the right clicked function, it instantly throws it.

Can someone please help? Thanks.

Here's the .capx - https://drive.google.com/open?id=0B-9Tu ... HAxbXdjRVE
Last edited by SyberHasky on Thu Apr 27, 2017 9:05 am, edited 1 time in total.
Posts: 2
Reputation: 179

Post » Wed Apr 26, 2017 12:54 pm

I cannot look at the capx, but I guess "Else" should solve the problem
Like this:
Code: Select all
On Right Clicked
-> Check if weapon is equipped: Throw
-> Else: Pick up
Posts: 408
Reputation: 4,616

Post » Thu Apr 27, 2017 9:05 am

Thanks a lot, it worked. It was so simple this whole time...
Posts: 2
Reputation: 179

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 1 guest