heater19's Forum Posts

  • Hi Scirra gurus,

    is there a way to manipulate the text object so that i can change the background color or maybe add a border outline

    i tried the textbox addon, but that gives a depth to the text that i'd rather not have

    thanks

  • rojohound

    thanks for quickfix, but I do have to ask... HUH!

    i can see it working, but logically i don't get it, why wouldn't my way of looping through each instance of sprite not work,

    or in other words why do you need to create a new instance variable just to assign it a UID that's created automatically anyway

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • don't have a solution for you, but I think I'm having the same sort of problem, and i think it's due to me not understanding picking instances very well

    anyway, here's what i would like to do:

    1) generate a random amount of enemies on the screen in random positions (i've been able to do that much!)

    2) i want to be able to recognize what side of the player sprite the enemies are (this is where i'm getting tripped up);

       

       if i manually create a single instance of the enemy sprite and place it on the view area myself, it seems to work

       I was thinking if i go through an 'every instance of enemy sprite' loop and check if it's clockwise or counterclockwise from the player sprite it would work but nope!

    anyway, here's the capx -

    dl.dropbox.com/u/62693846/WhatSideAmIOn.capx

    hope somebody can help

    thanks

  • thanks, that works pretty well

    so it seems, as far as sprite movement is concerned; one can't use just DestX as the destination coordinate, instead you have to use Self.DestX

  • i have three instances of a sprite,

    i'm trying to get them to move to a random position (RandomX, RandomY) at a bullet speed S every 3 seconds.

    what's happening is that every 3 seconds the sprites definitely move in a random direction, but they go past that random destination, the distance function doesn't seem to have an effect.

    i tried putting the distance function as a sub-event to the for each... event, but no joy; tried using lerp, but i don't think i understood it well enough to make it work.

    so, any help would be appreciated

    dl.dropbox.com/u/62693846/sample.capx