EpicRaid's Recent Forum Activity

  • Hi,

    I'm trying to get this done:

    But after the 'WaitSeconds*loopindex' action it goes wrong. All three explosions occur at the exact same coordinates.

    So I tried that 'loopindex' but apparently it doesn't work.

    Tried a bunch of things, but I was unable to solve it.

    I'm pretty sure there's something simple to solve this, except I don't know what it could be!

    Any ideas? Thanks.

  • Hiya,

    Sorry for the late reply. I replaced the LoS with a circle so now it checks on overlap. That does seem to work. I did wanted a 360 cone of view.

    Now the collision polygon isn't entirely round, as C2 recommends a max of 8 points. Would it hurt to have more, say maybe 16? I have cloned the circles because I believe it's necessary to have one for each tank.

    But I figure 16 points would be too much considering I will have like 8 controlable tanks.

    Thanks.

  • Hello,

    I'm making a game that has tanks which have the LoS And Turret behavior. Now I am able to make the tanks fire at enemy objects. These enemy objects however, also need to be solid, as I don't want the tanks to be able to drive right through them, nor do I want the tanks to be able to 'see' through them.

    Problem is however, that the tanks won't shoot at these enemy objects if you either make the object a solid, or put a seperate solid sprite underneath or on top of the enemy object.

    How can I go about accomplishing this?

    P.S. I also noticed the tanks will fire directly at the original image point of the enemy object. The tanks will need to be able to 'see' the image point, apparently?

    Thanks!

  • Sorry to bump this, I stumbled upon this topic, but does this pertain to the Browser object, specifically the 'Is Landscape/Portrait' event?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Did you clone the object? Or make sure the object has otherwise a unique name? If they're just copied, it will still destroy the bullet since they're colliding with the same instance.

    Alternatively, post a sample of your code!

  • Sure, use 'Choose'.

    Since you own a C3 license I'd also start using functions if you used my sample (always good anyway for recurring actions).

    I can't because I don't own a license.

    Update: mediaconceptfactory.com/c3p/Cars.c3p

    It works like:

    Text > Set Text to: choose("Text1","Text2","Text3")

    Put that action after the Car sprite is created.

  • OK, made a sample;

    mediaconceptfactory.com/c3p/Cars.c3p

    Upload it to C3.

    Not sure if I can share the project 'online' I don't think so because I don't own C3.

    The Car sprite has a container which I added the Text object to. Then it will be created with the Car sprite on the same location. They will also be destroyed both, when Car hits the DestroyCar sprite.

    Find the container settings by clicking a sprite, then at the bottom left in the properties panel.

    Cars are created On Start of Layout, since they have a container.

    Note that I didn't set the Text object Pin to Car to 'Position AND Angle' but just Position.

  • Depending on how the angle of the image was created it will be displayed that way when imported in the Sprite editor.

    You can change the angle of the image in the Sprite editor by rotating it (counter) clockwise with one of the button at the top.

    What I personally prefer is to make it so the front of the car is facing right in the Sprite editor. Then the sprite will always drive 'forward', not having to make any extra calculations when trying to make it go a certain direction in the C3 editor or when scripting.

  • I use the bullet behaviour.

    I put a few of the cars already on screen so there will already be traffic.

    When the cars hits a sprite at the end of the road, car is destroyed (out of the players view).

    Set that destroy sprite to invisible at On Start of Layout. So you can see it in the editor, but not ingame.

    Don't forget to set the car's Bullet Angle of Motion, when you create the cars, standard will be 90 degrees in this case.

  • Hiya,

    Thanks for your reply.

    It had something to do with the On Start of Layout condition indeed.

    I replaced it with:

    Also put those Level triggers in subevents like you said!

    Now it's working fine.

    Thanks!

  • Hello,

    I've got this game where traffic cars are supposed to spawn on the road every x seconds set by a timer.

    I'm using the timer behavior as such:

    What happens is, it will spawn a traffic car every 0 seconds since Global Variable 'TimerObjectAmount' starts as 0. Global Variable 'Level' starts as 1.

    However, if I restart the level by clicking the button (for example you ran out of time in the game), the traffic spawns just fine.

    It just won't set the TimerObject to the according TimerObjectAmount until the layout was restarted by the button.

    I tried many things, changing the order of events, destroy and recreate the TimerObject, nothing seems to work.

    If you proceed to the next level without the current level being restarted, it will change the TimerObject correctly, but it won't have the correct number gotten from TimerObjectAmount. In other words, it's always one step/level 'behind' unless that specific level was restarted.

    Example: You're one level 1. TimerObject is using the initial TimerObjectAmount=0 and ignores my event which should set it to 3. Layout is restarted ingame. TimerObject was correctly set to 3.

    Hope someone knows what's going on?

    Thanks!

  • Hey, hate to spoil your day, but those two comments look like they were made by spam accounts.

    About your game.. needless to say the graphics could use a major overhaul.

    I can't skip the intro. Sometimes I can use the mouse, other times I must use the spacebar to select?

    Either make it all keyboard, mouse, or for both.

    Gameplay.. well, uhm, it's ping pong. It works nicely. But if you want it to stand out, you might need an edge.

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