How do I

Get help using Construct 2

Post » Wed Jul 05, 2017 10:49 am

Hi everyone,

I want to make a game where you see from above (lilke in ancient Zelda) but not completly. The same as in hyper light drifter. And I have an issue.
Imagine I have a house. It has a floor and a roof. I'd lije to be able to go trhough the house when the y position of the player is above the base but not above the roof. A draw will certainly be clearer.


.. _____ < - I can go normally
/_____/|
|_____|| <- I can go and i pass behind the house
|_____||
|_____|/ <- I can't go through the house
< - I can go normally and I passe above the house


I have some ideas with a LOT of tests and while loops, but I'm sure wthere is a better way to do. Any ideas ?
B
6
S
1
Posts: 29
Reputation: 408

Post » Wed Jul 05, 2017 3:26 pm

Something like this?
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824

Post » Wed Jul 05, 2017 6:25 pm

Something exactly like that.

A friend of mine told me I could split the house in two objets, one with the solid behavior, the base, and one without the solid behavior and on a different layer, the roof, which would be on the top layer when I go through. It's a good idea, I will try it out.
B
6
S
1
Posts: 29
Reputation: 408

Post » Fri Jul 14, 2017 6:29 pm

Yea, I tried to get him to share his algorithm with me, but he was being modest...
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824


Return to How do I....?

Who is online

Users browsing this forum: blue visionary, tarek2 and 10 guests