Gadgetkk's Forum Posts

  • Hi Everyone,

    Needing some assistance please...

    In my TD game I am wanting to have the enemies only travel on the road objects.

    I'm wanting to have the road be randomly generated (eventually) and then have the enemies use the road only to get to the end without making a bunch of solid objects needlessly.

    Anyone know if this can be done? If not, thoughts are on how to do a workaround?

    Thanks in advance,

    Gadget

  • Hi Everyone,

    Want some opinions and thoughts please.

    Right now I'm working on a PC only game with a resolution of 1280 x 720. But I have some pretty detailed assets I'm working with that are about 300 x 300. So I'm wondering what resolution I should use to squeeze more pixels into my games.

    (side note: I don't really understand that resolution/scale/viewport concept)

    Thanks in advance.

    Gadget

  • Hi Everyone,

    In the past I used gamemaker which has a parent/child function that allows you to create 1 set of code for a parent and any children under that parent will execute the code the same for themselves.

    What I'm hoping to be able to do is have a 'build bar' in my game where you click various icons that creates a cursor to build that object (like any type of building game). But what I'm not wanting to do is recreate that code for each and every object that can be built in the game.

    Does something like this currently exist in construct 3?

    Thanks in advance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That actually worked. I hadn't seen/used containers before. Thanks for the help.

  • Hi everyone,

    I'm trying to spawn an object Cart every 2.5 seconds. And when Cart spawns, I want it to create a partner object that will follow it.

    Now if I do a for each loop with the On Created command, the game won't load. But if I move the On Created command outside the For Each loop, the game will load but the secondary spawn objects don't work correctly.

    So the question is... how do I have each object spawn it's own secondary object for itself?

    Here is my code snippet.

    Thanks in advance for any help.

  • It does. Just wasn't sure if it was the 'right' way or if there is smarter way to do it.

    Thanks for your help.

  • Ok, I think I was able to piece it together. Feedback is welcome...

  • Thank you for the reply, I think understand what you are saying I'm doing wrong, but I understand the solution.

    I'm coming GameMaker and so my brain is wrapped around how it handles instances/variables, which seems to be very different here.

    Would you be willing to provide a code picture?

  • Ya I have a couple of those. Here is my code...

  • Hi Everyone,

    I have several instances of the same sprite with a variable. Each of those sprites creates a text object when the sprite is created. I am wanting to have the text object pull the variable out of the instance of the sprite that created it.

    But what I'm seeing is it looks like the variable is shared across all instances of the sprite.

    How do I have the text object only pull the variable out of the sprite that created it?

    Thanks in advance.

  • Ok so when I have more than 1 miner, I’m going to have issues right?

  • I thought I was storing the asteroid UID within the miner object. But that is not the case? So would be better to store that value in the asteroid object?

  • Ok, yes that worked.

    Can you explain to me why it worked vs the selecting the miner?

  • The My_Asteroid has the UID of the asteroid needed. If I do just pick asteroid how will it know which asteroid?

  • I don't know why it didn't attached the image...