Dont Starve like Gameplay? (Video Included)

Get help using Construct 2

Post » Sun Jan 20, 2013 6:00 pm

Hi guys! I was trying to make a game with the character movement of Don't Starve and all that. If you don't know what the game is, look at this: http://www.youtube.com/watch?v=ENl-89bY0i4

Okay so I have the random forest generation down, but I cant seem to get the player moving correct. This is what I have:
Bevar in the Wild! CAPX

Apparently what I have doesn't seem to work well. Can someone check it out?
B
30
S
8
G
3
Posts: 366
Reputation: 6,302

Post » Sun Jan 20, 2013 11:32 pm

you have 2 options:

-You want that the Player Sprite rotate depending of direcction? then you must change the origin of the sprite to the center, not in bottom

-You dont want to rotate the sprite on moving? then set the angle in the 8 direction behavior to "no".


Another thing is that tree hitbox its too big, try to put the collision hitbox only in the bottom part of the tree, not in the branches.
B
32
S
7
G
2
Posts: 164
Reputation: 3,774

Post » Mon Jan 21, 2013 4:27 am

What I wanted to do, is have that weird type of gameplay where he can go behind, next to, or in front of the trees. I think you can do that with layering and stuff.
B
30
S
8
G
3
Posts: 366
Reputation: 6,302

Post » Mon Jan 21, 2013 7:15 pm

[QUOTE=InvaderX] What I wanted to do, is have that weird type of gameplay where he can go behind, next to, or in front of the trees. I think you can do that with layering and stuff.[/QUOTE]

You need to right-click on the tree sprite in construct 2. Then go to the toolbar on the left (the one with pencils and erasers). On the bottom of that toolbar the last icon that looks like some lines and circles, click on it. Its the set collision polygon icon. From there choose parts of the trees you dont want to be solid.
B
18
S
4
G
3
Posts: 436
Reputation: 4,801

Post » Mon Jan 21, 2013 7:23 pm

[QUOTE=InvaderX] Hi guys! I was trying to make a game with the character movement of Don't Starve and all that. If you don't know what the game is, look at this: http://www.youtube.com/watch?v=ENl-89bY0i4

Okay so I have the random forest generation down, but I cant seem to get the player moving correct. This is what I have:
Bevar in the Wild! CAPX

Apparently what I have doesn't seem to work well. Can someone check it out?[/QUOTE]

Look at these two images:

Step 1:
http://imageshack.us/photo/my-images/546/tree1w.png/

Step 2:
http://imageshack.us/photo/my-images/843/tree2a.png/retrodude2013-01-21 19:24:12
B
18
S
4
G
3
Posts: 436
Reputation: 4,801

Post » Thu Jul 27, 2017 1:11 pm

Hi! This post was many time ago I know, but I believe that you wanted to do this:

Video: https://www.youtube.com/watch?v=Vj7BeLzKUmI

Capx: (Please, paste this here: https://) www.dropbox.com/s/dac0y72zm860ydv/proto ... r.zip?dl=0

Joysticks: "WASD" to move the character and "Q' and "E" to rotate the camera
You are ugly.
B
12
S
3
Posts: 15
Reputation: 765

Post » Thu Jul 27, 2017 1:23 pm

@fejaomaravilha

May I recommend you update your version of C2.

The version you are using - r221 - is from Jan 2016, so is extremely out of date.

Your example also uses non-standard addons, which you may want to inform users of so they can open your example.

Cheers
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,388
Reputation: 58,458

Post » Thu Jul 27, 2017 2:51 pm

An example I created not so long ago:
alextro wrote:Limit player movement or walk area when it about to reach the border of layout to keep it at center. The problem is when the player reach the edge of layout. For fixing player control, some angle calculation need to be done. Use z-sort based on Y position to make object behind/over another.

To actualy sort z-order correctly, we need to consider layer/layout rotation so it will picking correct relative y position based rotation. Here the solution:
https://www.dropbox.com/s/1xbj1d26xldtd ... .capx?dl=0
ImageImage
B
105
S
46
G
23
Posts: 778
Reputation: 22,226

Post » Thu Jul 27, 2017 5:39 pm

@zenox98 Thanks for advice. You are right, I made this example some years ago and I pasted the old link here.

@alextro Congratulations! Your .capx is awesome :) Thanks a lot!
You are ugly.
B
12
S
3
Posts: 15
Reputation: 765


Return to How do I....?

Who is online

Users browsing this forum: NN81 and 19 guests