EpicRaid's Recent Forum Activity

  • Thanks! That's what I was looking for.

    And yes - I do read a lot of posts here as well, Google is one of my best pals. Often I find solutions here on the forum - no new topics needed.

    Thanks again, you're very helpful.

  • Thanks!

    I suspected I could do something with that uploaded ID, but you know, since I couldn't even get the IMG tags working. Thanks again.

  • I just got the same message. I didn't even post any links in that reply. Perhaps because there were two different links shared in previous two posts within the same topic?

    I've never had this before.

  • Try Construct 3

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

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

    Thanks so much. I've been looking at the example, but I don't understand how to make a car move. Do I still use the car behavior? If so, how do I 'integrate' it so the car responds to the controls?

    Also, how do you know all this.. may sound silly but did it take you long to be able to code this? I'm trying to get better at programming but some things some times seem above my head.

    Thanks.

  • Hello,

    My car game is almost finished, and I am currently using a thumbstick to drive the car around.

    The traffic is vertical only and the player needs to drive vertically.

    Of course, to overtake cars you need flexible controls.

    The thumbstick works, but I'm thinking it could be much better.

    Like use a thumbstick for steering, and seperate two buttons for accelerate and brake. Like on a gamepad.

    Now I tried modifying the thumbstick to just use left and right, but couldn't get it to work properly in conjunction with the accelerate and brake buttons. Somehow the acceleration and max speed were changed.

    I simply disabled the accelerate and brake for the thumbstick, and added two buttons for them instead.

    The mobile game I made has a portrait layout.

    This is the thumbstick example I'm using, created by LittleStain : https://www.dropbox.com/s/i1obxb4zg018119/ProjectThumbstick.capx

    If anyone has any suggestions, ideas, they're more than welcome.

  • Hi,

    Thanks very much.

    That demo looks really good.

    I tried implementing your example attached .capx in my file but I could not get that to work though. I tried exactly replicating your example to my file.

    The cars in my file would still keep overlapping, but your demo it all works fine.

    I managed to code something with a little extra coding and now the traffic works.

    I also disabled the Bullet behavior for the Player it's working now :)

    Now my cars use the wrap behavior, which works fine, except that the wrap behavior doesn't take into account that it should stop for other cars.

    You see, the car must first be fully out of the screen area, before it enters it from the bottom.

    So if I don't drive forward, the cars that are wrapping on the top, will bunch up on the bottom and overlap eachother. I guess I could add extra cars below the existing lanes and remove the wrap behavior, but I was wondering if wrap could still be used to save time and memory space.

    Any ideas?

    Regards

    EDIT: I think it can be done with adding 200px to the Y of the car that is overlapping. Or going to overlap. Tried some coding, but so far it's giving me weird results or the cars still bunch up.

  • Hey, thanks for replying!

    I implemented the code you provided, however, the PlayerCar also moves automatically since it belongs to a family with the bullet behavior.

    Is there anyway to exclude the behavior from the family for the PlayerCar? I also need to exclude the solid and wrap behavior then.

    Because the PlayerCar needs to stay player controlled.

    Regards

  • OK, so I tried something new:

    This works, but only if there isn't the same car behind eachother on a lane.

    Example:

    PlayerCar

    Car1

    Car2

    Car3

    Car4

    Car5

    Works fine.

    PlayerCar

    Car2

    Car2

    Car3

    Car4

    Car5

    If the PlayerCar stops at the second example, the second 'Car2' in the row will drive through the other Car2.

    That's the problematic thing with the code I posted above.

    I tried to minimize the code and brought it down to one PlayerCar and one Cars sprite. But the result is the same; if the same instance is put or spawned behind eachother, the bottom Cars sprite will drive through the other and simply not 'listen' to stop for the same Cars sprite. It will stop for the PlayerCar however.

    Thanks.

  • Hello,

    I tried inserting an uploaded image in a post, but it's not working.

    Am I doing something wrong? I'm trying to use the 'img' tags the old fashion and in various ways.

    Uploading an image to a post from the forum also doesn't work? It just shows an ID.

    Thanks.

  • Hello,

    I'm trying to make car traffic, but don't understand how to code something.

    I'm trying to make the cars 'interact' with eachother and the player car.

    See:

    The top pink car is the player car. The two cars below are 'CPU' cars. When I drive, the cars should too. But always maintain distance to the player, and to the other CPU cars.

    I've tried different things, but can't figure it out.

    See:

    The CPU cars are bullets and drive 50 speed automatically, except when they encounter another CPU or player car it should stop when anything in front of it is stopped too. The player car has car behavior.

    Also, the cars are all in one sprite, except the player car. So the appearance of the CPU cars are already randomly generated.

    Thanks.

    EDIT: How to I show the uploaded image to the forum?

  • I'm really sorry... but... the name should be "Shoot" and not "Shot" because "Shot" is past tense... Sorry!

    There's also a game on Steam called 'Pike and Shot', I guess he used 'Aim and Shot' because the name you suggest has already been taken/used.. a thousand times

  • Subscribe to Construct videos now

    Now THAT looks nice. How did you make the graphics? With which program?

    It looks like it was made in Unity, keep it up.

EpicRaid's avatar

EpicRaid

Member since 13 Feb, 2015

Twitter
EpicRaid has 17 followers

Trophy Case

  • 9-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

18/44
How to earn trophies