LittleStain's Recent Forum Activity

  • The pick nearest event/condition doesn't have a range..

    When using pick nearest the way described below you can set your range to whatever you want for only the nearest enemy within LOS will be used for the actions.

    player has line of sight to enemy

    enemy pick nearest to player.x,player.y

    player shoot at enemy

  • When you select an object inside the editor on the left you find the properties bar..

    click add/edit instance variables..

  • add a condition to the event that makes the player rotate..

    mouse is not over pause button..

  • Why do you have the turret set to rotation off if you want the turret to rotate?

  • One way would be to put the layer you want to scratch away on a layer with force own texture.

    Then on touch create a sprite on that layer with blendmode set to destination out..

  • From the above tutorial:

    Scale inner mode

    Like Scale outer, this mode scales the view and uses the full display. However it handles aspect ratios differently: whereas Scale outer shows more of the layout if the aspect ratio is different, Scale inner shows less. Since it prefers to cut off parts of the view, it never accidentally shows content outside the window... but you still have the opposite problem - it might cut off something that you want to be seen!

  • Well first you should pick one of the men to use as a starting point..

    I will give it a boolean variable Startingpoint for this example

    Also I'll add a boolean variable IsSorted

    also I wil use two global variables StartingpointX and StartingpointY

    on button pressed

    ----men is startingpoint

    system set startingpointX = men.x

    system set startingpointY = men.y

    men set IsSorted to true

    -- system repeat 5 times

    ---- pick all men

    ---- men Issorted is not true

    ------- men pick nearest to startingpointX, startingpointY

    men set position to startingpointX, startingpointY+3

    men set IsSorted to yes

    system add 3 to startingpointY

    easiest way would be to create a function for this and call it with an action.

    comparing if men.count is not the same as the number of men with IsSorted is true

    After the repeat 5 times you could subtract from the startingpointX to get to the new row of men.

  • If you want to allow cropping you should choose for scale-inner..

  • Another way would be to push the desired info into the array..

    Push

    Add a new value either to the beginning (front) or end (back) of an axis. Since the Array is a 3D cube of values, technically this inserts a new 2D plane of elements all with the given value. However in 1D arrays this adds a single element, and in 2D arrays it inserts a new row of elements.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
    • Check the number of bits of data that come in through AJAX.LastData (divided by a separator). And then quickly create the array in the right size and load the data into the array?

    This would be pretty easy using TokenCount

    tokencount(src, separator)

    Count how many tokens occur in src using separator. For example, tokencount("apples|oranges|bananas", "|") returns 3.

  • If you call the layouts easy1 - easy50, medium1 - medium50, hard1 - hard50

    You could use the action goto layout by name

    system goto layout by name = "easy"&floor(random(1,51))

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies