supergodjesus's Recent Forum Activity

  • Hello all,

    I understand how to pick the closest instance using events, but is there a way to pick, say, the 6 closest instances?

    Thanks for any help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Right now, with the current physics, it makes the environment more dynamic and interesting for game play. It's fun watching zombies toss aside chairs and tables to get at the player, or the player pushing a fridge in front of a volley of enemy projectiles. I just want to improve upon the functionality as well as expand my own knowledge of how these all work.

    Also, why not? Top-down physics are even included in one of the examples that ship with the software.

  • Hello again,

    1.) So I've gotten the top-down physics to work -relatively- well, though even with highest friction and dampening settings, large objects with high density still slide around a little too much. Is there a way to make items not seem like they are on ice in top-down view?

    2.) Also, is there a way to make an enemy slow down when pushing an object? So for example, if the player shoves a sofa in front of a zombie, and the zombie runs into it to get to the player, right now the zombie just plows through it and shoves it out of the way. I'd rather like to have the couch slow the zombie down as the zombie 'struggles' to get past it. Zombies currently use the bullet behavior for movement and every tick they rotate towards the player.

    3.)Further, is there a way to make an object just block other moving objects all-together while remaining moveable? For example, a fridge that the player can push in front of a doorway that blocks zombies from entering.

    I've been looking through tutorials and examples, but haven't really found much in regards to these types of things.

    4.) Another problem I am having is figuring out how to properly apply impulses. Say I have a giant monster. When he collides with aformenioned sofa, I want the sofa to go flying, and I figure applying an impulse would work. However, I am unable to figure out how to apply an impulse at an angle depending on the angle of the monster. Basically I want the sofa (or other furniture) to essentially be thrown away from the monster upon contact.

    Any information/suggestions/feedback is greatly appreciated!

    Thanks again!

  • Well, for each time the player dies, you can add 1 to a global variable (deaths, in this case). Then put in a textbox that says something like "Deaths: " & deaths (whatever the global variable's name is).

  • Couldn't you place a bunch of spawn points and then have the system just pick x number of random spawn points and spawn various objects?

  • Doesn't seem to be an edit button D: (edit* oops, I missed it)

    Anyway, I uploaded the capx to dropbox, if anyone wants to take a look and maybe tell me how stupid I am for missing something? I'd appreciate it. Thanks!

    http://dl.dropbox.com/u/13425402/ZombieTest.capx

  • It's strange because I also have randomly spawning barrels that use the physics as well. I can push them just fine with the player, and the monsters run into them and they move just fine, and the barrels collide with the wall just fine. It's just the player and monsters not colliding with the wall that's the problem.

  • Hello again,

    I am using the 8 direction movement for the player (top-down) and I disabled the world gravity, so that is not a problem. However, what I am having trouble with is collisions.

    Right now I have 3 physics objects: the player (set to immovable:no, use collision polygons, prevent rotation: yes), the monster (same settings essentially except the prevent rotation), and walls which are set to immovable object.

    I double checked and made sure all of these are on the same layer.

    The problem I am having is this: When the player collides with a wall, well, there is no collision. The player just moves right through it without any effort (the player appears to go "under" the graphic). The monsters do the same exact thing. The player and the monsters also don't collide and instead just pass through each other (but all events associated with "on player touch" or "on monster touch" still work just fine).

    Prior to this, I had all 3 objects as solids with no physics. The player could not go through the wall, but monsters still could clip through it.

    Any suggestions are greatly appreciated. Thank you!

  • These are all helpful. I will give them a shot and see how it all goes and if there are any other questions I'll post :)

    Thanks again!

  • Hello,

    I know that you can upload your game here to Scirra's arcade. But how does one upload a game to their own website? I looked through the tutorials sections, and there is some good in-depth stuff about how it all works, but nothing (that i've found anyway) to actually say -how- one goes about uploading a game to their own website.

    Any information (or tutorials I might have missed) is greatly appreciated. Thank you.

  • Alright so after closing and re-opening Construct 2, the animation now loops properly.

    For #2: Yes, using 8 direction behavior. I set the angle property to 'No", and that works.

    Now I want to make it so if I hold down the right mouse button, the player moves towards that direction, but I can't seem to make that happen without having the player's graphic rotate. Is there a way to have the player move in that direction but the graphic remains in place?

    My ultimate goal is to have 8 direction animations (up, down, left, right, then the isometric NW, NE, SW, and SE directions). If the player is moving up, then the 'up' animation is used, if the player is moving down, then the 'down animation is used' and so forth in 45 degree increments as appropriate. I get how to set that in the events using the keyboard, but no clue how to do that with the mouse.

  • Thanks for the great answers everyone! I got most of those issues figured out now thanks to you.

    I was able to get the sprite sheet imported no problem. But I did run into a couple of things I need to fiddle with:

    1.) The animation doesn't loop; it just plays once and then stops. I have the Loop option set to loop so it -should- play continuously... but it doesn't.

    2.) Is there a way to make the player graphic -not- rotate when its moving? I would like to be able to move in any direction like top-down but I don't want the character graphic to spin, and instead use different animations (I can do this part, looking at the example from the space shooter game).

    I really do appreciate all the help. Thanks a lot!

supergodjesus's avatar

supergodjesus

Member since 17 May, 2012

None one is following supergodjesus yet!

Connect with supergodjesus

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies