atmas's Forum Posts

  • atmas

    In the capx it just creates the roads. at the start of the layout. You could just do what you said and only pick the roads off screen and within a certain distance of the player to create cars on.

    Pedestrians could probably be done in the same way, although you probably could ignore the collision detection. Here's another idea along those lines:

    Hello! R0J0hound! As i said before, i downloaded your .capx road2, and then, i tried to write the same codes you did and now it's working very well! I'm not good with math, but now i guess i will be able to keep creating my game. The only thing i have is creativity. You don't know how much you're helping me now. I created 30/ 40 vehicles, an inventory system, some fake 3d buildings months ago. And this and the .capx city walk, were the things i been searching all over the internet. that i never found before. Thank you so much once again!

  • Here's and old capx experiment of mine that may give some ideas.

    https://www.dropbox.com/s/df8jtstjva45m ... .capx?dl=1

    The cars don't really follow any traffic laws, they just go while trying to not overlap each other. It can fail when multiple cars enter an intersection at the same time, so some right of way is needed. The hack fix was to make the stop temporary and they'll eventually just drive over each other to keep things going.

    Hey R0J0hound! I really don't know how to thank you buddy! Let me ask you one more questions please: How dospawn vehicles only near the player, but the condition is: The player won't see the cars spawning? And about the PED'S, can i do the same thing to pedestrians? I'm creating a game like gta 1, and i been searching for things like that for 8 months! Do you have any more .capx related to this? And if not, where can i find it please? I already searched all over the internet. Thank you!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Anything now will be very helpfull! The good thing of Construct, is that we can adapt the codes and the stuffs to get what we want. And thank you very much buddy!

  • Hello! I'm getting nut trying to search for any tutorial that could answer my questions that will make almost 9 months old now. I tried to learn how Construct 2 works, and because of that, i sucessfully created a little part of a city, 40 vehicles with physics, some fake 3D buildings, guns, a 100% drag and drop working inventory and etc. But i just can't find a single tutorial explaining 100% how to create AI vehicles driving on streets and PED'S on sidewalks randomly just like GTA 1 and GTA 2 does. I swear, i searched all over the internet for something like this since 8 months ago. I tried to looking for every tutorial here, on every Youtube video i could find and even on Facebook realtioned groups. I not good with coding, and i really don't have too much ideas how to do it for this problem. I know we have some codes of: ''Every tick > spawn ''vehicle'' on layer x, on x.y positions and etc.. Or i could use the ''bullet'' behavious on my vehicles, but this wouldn't work very well with a sandbox game. I downloaded the .CAPX called: ''multi_catmull_rom, but i really don't know how to use it properly for my game. Sorry for my english and thank you very much if you read my question. I don't want you to finish game for me. I'm saying that because i just found 2 videos on internet of russians that did a little bit of what i want to do. If someone could answer it for me, i would be very, very, very happy. Thank you!! Here's the link:

    Subscribe to Construct videos now

    and the second video is: