heater19's Recent Forum Activity

  • so i wanted to spread some sprites over a random area, but they shouldn't overlap with one another;

    this event sequence makes logical sense to me, but it seems it doesn't detect when the sprite overlaps one another so they can be repositioned;

    interestingly, if i use 'spawn' instead of 'create' then it works, but then i can't assign the instance variable 'sc' to each sprite, which i need to do in order to identify the sprites at a later time;

    thanks for the help

  • AAAAAAGGGGGHHHHHHHHHHH!!!!!!

    thanks

  • i want to assign the loopindex to each sprite, but all i get is a bunch of zeroes but the last index does show up;

    i know it's staring me in the face, but i'm not seeing why the 'sc' instance variable of the sprite is not getting the loopindex assigned to it;

    thanks for the help

  • <font color=brown>fudge</font> <font color=orange>sticks!!!</font>

    <font color=blue>I've</font> <font color=green>got</font> <font color=yellow>the</font> <font color=magenta>same</font> <font color=cyan>problem</font> <font color=lime green>!!!!</font>

  • how are you defining 'seeing'

    is it a line of site issue, or is the enemy supposed to be in certain range of the player (like in a radar)?

  • thanks for the advice

    got it to look flat with a background color by disabling it

  • 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

heater19's avatar

heater19

Member since 4 Feb, 2012

None one is following heater19 yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies