Gadgetkk's Recent Forum Activity

  • 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?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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...

  • No change in the results.

  • You need to Pick by UID with your cached value before doing the distance check.

    Can you elaborate on this please? I do not see a 'Pick by UID' option.

  • Unfortunately a global car won’t work. Right now I’m just playing/learning/testing, the eventual goal will be to have many miners each with their own asteroids. So I can’t do a global vat in that instance.

    So do I test the distance from the miner and the generic asteroid then as a second test assign asteroid to the saved UID?

Gadgetkk's avatar

Gadgetkk

Member since 11 Jan, 2018

None one is following Gadgetkk yet!

Trophy Case

  • 6-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

8/44
How to earn trophies