Societyisbabylon's Recent Forum Activity

  • I'm fiddling with allowing the player to jump in my gta clone. I know in theory how to achieve the results I want, I'm pondering the best solution for it.

    The situation is this: when the player presses the "j" key this piece of code runs:

    Now, as long as "jump" = 1 how would I go about handling the solid state of objects that are jumpable?

    My current idea would be something like this: If jump = 1 and player overlaps for example a car, that cars solid state is set to off, I forsee an issue that if an npc is on the screen at that moment, it would be able to go through the car too?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you guys! Got it working. I'm having a hard time with these math things, heh.

  • I finaly figured out there was a thing called anchor, so I opted to change my spawn system to only have a few anchored at the edge of the screen instead of tons put on the map.

    When I did this change, I noticed that npc's only spawn from the green box with an arrow on the right side of the screen, but never on the others. Any pointers on what the problem might be?

  • That's a smart solution, thank you!

  • I finaly figured out a way to fix it. I set the corresponding variable to - 1

  • I'm struggling with ai behaviour. The situation is as following: npc's are walking down the streets of the city, another npc is coming towards them. At this moment in time, I'm trying to figure out how to make them move around each other and continue on their merry way.

    I experimented a bit with pathfinding, but I don't really want the npc's to have set goals, other then to walk around and I haven't figured out how to do that yet.

    The npc family has these behaviors:

    Bullet: When they spawn they go in the direction of the spawner.

    Pathfinding: Nothing in here yet

    Line of sight:Nothing in here yet

  • I'm keeping them black, but I am able to change the color. I haven't decided what color to use quite yet, so they are black until I decide =)

  • Im having a bit of an issue figuring out how to limit spawning. When an npc dies, it spawns a bloodpool, but it keeps spawning the bloodpool until the game starts lagging, how would I implement a limiter so only 1 is spawned?

  • Anchor, good tip!

  • Nevermind, I figured out it had to do with Z orders. I fixed it and got perfect gta styled buildings (And fences!)

  • I managed to get a grasp on a lot of basic stuff this week, thank you all for pointing me in the right direction.

    I learned that the light shadow plugin could be used to make 3D topdown buildings, but I must be doing something wrong, because, sometimes the shadows dissapear. The light object is pinned to the player, and works most of the times, it appears that the "glitch" happens if the player walks to far.

    I hope I was able to be clear enough, if not, I will try to explain myself better, english isn't my first language, so please, don't beat me too hard.

    Here is my setup:

    In action working:

    In action stops working:

    Download - https://filebin.net/hnttvcuv7djupnvq

  • Aye, I'll do that in the future if I can't get things running despite tips and advice. I finaly managed to get spawners to work, my issue was that I didn't understand I needed multiple checks to solve the problem.

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