Societyisbabylon's Recent Forum Activity

  • Hm, I decided after some fiddling that it was better to have spawn points placed around the map, I have it spawn npc's every 1 second if a random variable = 1, otherwise not. When npc's are offscreen they are destroyed.

    I'm still struggling with having the game check where things are, I need to fix a zone where the spawn rule applies but I just can't figure it out. I feel like it's super easy to do, I'm just not seeing it...

    And, I can't figure out how to check for current position either...

  • Im having a bit of trouble with my spawners, I have 2 spawners on the "HUD" layer just outside the visible field ingame, so they move when the player moves. Every two seconds they spawn an npc that walks left or right depending on where it spawned, my problem is if I move they spawn location doesnt move, the npcs are spawned on the original position of the spawners instead of where they currently are, any tips on how I fix this?

  • I had issues being able to scroll between weapons in the inventory. I managed to get it working with global variables as you suggested. Heh, I need to remember to use globals more =)

  • I can't seem to get my inventory to work properly. I have managed to get a HUD layer going with a lifebar and a slot for weapons, I can pick them up and use them, but I get a bit confused when it comes to setting up the variables.

    This is how I currently have it set up:

    On the HUD, I have a sprite with frames for each weapon

    The player has instance variables:

    Unarmed

    Gun

    Bazooka

    And the crates are just sprites that when the player collides with for example the gun crate the player instance variable Gun is set to 1 and the gunslot is set to 1.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Im having a bit of trouble with npcs in my project. Im trying to set up so that if an npc is off the screen for 3 seconds, they get destroyed, the problem Im having is that I dont know how to set up a check so the counter resets and stops if the npc is on screen, at the moment they blink out of existence while on the screen. Could someone hint me on how to set this up properly?

  • Ah, okay. Thank you.

    I set it to be a bullet, then toggled it on when hit, changed its speed to 100, then set the angle of motion to player.angle, and set the bullets acceleration to -50. Voila! This is extremely neat.

  • Ahh, thank you very much!

    My next question is regarding physics (I'm guessing)

    I can make the player punch stuff and change the animation of the thing getting punched, but I want it to glide a little bit too, would you mind explaining how to do that too?

  • Hello everyone, I'm fiddling with my first project, and I could use some help with events. I'm doing a simple topdown game, I figured out how to move with WASD, so that's a start.

    Now, I'm trying to make it so that when "spacebar" is pressed, the players "punch" animation plays. As it is now it doesn't play, could someone explain to me how to make it work?

    I attached a screenshot of my events:

Societyisbabylon's avatar

Societyisbabylon

Member since 15 Mar, 2019

None one is following Societyisbabylon yet!

Trophy Case

  • 5-Year Club
  • Email Verified

Progress

6/44
How to earn trophies