oosyrag's Recent Forum Activity

  • Not firing in unison, use for each enemy condition.

    Edit: Looks great btw!

  • Well depending on how you show your text, you could add a simple sprite: set frame action to whatever triggered the text to show - that would be much simpler!

  • I would treat the spawn area as 4 spawn rectangles. First ceil(random(4)) to pick which rectangle the first object spawns on, then create it (assuming origin point of the spawn rectangle is top left) at spawnrectangle.x+random(spawnrectangle. Width), spawnrectangle.y-random(spawnrectangle.Height)

    For the other object, use layout.Width-object1.x and layout.height-object1.y to get the opposite location. (Or whatever width and height the total black area is, if your layout is bigger.)

    This is slightly less than true random, because the corners will overlap and you have a higher chance of spawning there overall compared to the sides.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • From the manual:

    [quote:3aq2zl13]Wait

    Wait a number of seconds before continuing on to the next action or sub-events. Other events continue to run in the meantime. See also the tutorial on How to use the System 'Wait' actions.

    https://www.scirra.com/tutorials/56/how ... ait-action

  • Use the random() expression.

    On SpawnCondition - Set RandomVariable to random(100)
    
    If 0<RandomVariable<30 - Create 30%chanceLootSprite at InvisibleSprite.X+random(-InvisibleSprite.width/2,InvisibleSprite.width/2),InvisibleSprite.Y+random(-InvisibleSprite.Height/2,InvisibleSprite.Height/2)
    
    If 30<RandomVariable<100 - Create 70%chanceLootSprite at InvisibleSprite.X+random(-InvisibleSprite.width/2,InvisibleSprite.width/2),InvisibleSprite.Y+random(-InvisibleSprite.Height/2,InvisibleSprite.Height/2)[/code:1x62l5ug]
    
    Repeat for however much loot you want to create.
  • So... what is your problem?

  • The problem is in your load target.

    You did nwjs.AppFolder&"data/mydog.png" , Windows uses \ for directories, so it should be nwjs.AppFolder&"data\mydog.png".

    To debug, I recommend adding

    On Layout Start - Set Textbox Text to nwjs.AppFolder&"data\mydog.png"[/code:257wngew] to make sure you have the exact file path correct.
    
    The saving image is as R0J0 described (with small modification)
    
    On click
    --- set viewport size to sprite.width, sprite.height
    --- scroll to sprite
    --- snapshot canvas as jpeg
    
    On snapshot
    --- wait 0
    --- browser: invoke download snapshoturl
    
    Make sure your textbox overlaps the sprite or it will get cut off.
  • All you need to do is make a second set of controls that do.... something.

    Your requirement is vague.

  • Use an expression - random(x) gives you a random number between 0 and x.

  • A popular option is dropbox.com

  • A capx would be useful to help troubleshoot your problem.

  • I see it stuck on my system as well. Have you confirmed when you load the same project with 216 it works fine? Try downgrading and exporting again. Maybe it is a bug you found, try on the bug forum.

oosyrag's avatar

oosyrag

Member since 20 Feb, 2013

Twitter
oosyrag has 38 followers

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies