supergodjesus's Forum Posts

  • 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!

  • Hey, thanks a lot for the quick reply, those are both very helpful!

    Dumb question here: how do you make 'invisible' circles and rectangles?

    Also, additional question if anyone knows the answer: can you make a 'save game' option to allow players to pick up where they left off?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello,

    I just recently started using Construct 2 so this is all still a bit new to me. I have been able to figure out a lot of the things that I want to do via events and behaviors, but there are two little things that are still sort of dogging me at the moment and I hope someone might be able to point me in the right direction.

    The first: sprite sheets. I could have sworn that I read somewhere that you can put in sprite sheets instead of individual pictures for your animated sprites (and the example pack even comes with some setup that way). However, I can't figure out how to actually put the sprite sheet in and make it work - whenever I try I just get a single sprite that displays the entire sprite sheet and I don't see anything in the animations screen that let me designate it as a sheet instead of a singular sprite.

    The second: Area of effect attacks. I can launch a projectile, no problem. I can have it cause damage or destroy an object no problem. However, I tried to make a projectile that will launch to a spot where you click on the screen, and once it reaches that spot, I wanted it to explode and deal x damage to all monsters within a certain radius of that spot... However, I have had zero luck with this. Any suggestions would be greatly appreciated!

    And the third: melee-ranged attacks. I get how to make projectiles and such deal damage, but I am stuck with how to make a melee-type attack, like a knife or sword. I just don't 'get' how to even really start with it or how to make the game know if a monster is within range and angle of the blade (assuming the player character is facing the monster).

    So, any suggestions/feedback would be great! Thank you kindly.