dop2000's Forum Posts

  • So if there are blocks with colors "red" and "green" on the screen, but no "blue" block, you need to spawn a bullet and set its color to randomly to "red" or "green" (but not "blue"). Is this correct?

    You can do this:

    System Pick random instance of Block 
     -> Create Bullet
     -> set Bullet animation frame to Block.AnimationFrame
    

    The problem with this method is that if you have 9 red blocks and 1 green block on the screen, then there is a 90% chance that your bullet will be red.

    Also, note that if you are doing this inside some parent event (for example "Bullet on collision with Block"), you will need to execute "System-Pick all Block" event first.

  • I don't quite understand. If you need to spawn a bullet only if an object exists with animation frame>0, you can do this:

    Object animation frame not equal 0 -> Spawn bullet

  • I gave you a link to a working capx example in your previous post. Have you tried it? Does it work? (you can zoom in/out using two-finger pinch gesture)

    If my code works and yours doesn't, then you need to post it here.

  • zenox98 , It works in C3 too.

    I don't have an iOS device, but it does work on Android phone.

  • You can create objects by name in Construct 3.

    For example, you can do Create object "Enemy"&Type

  • Browser.Language is too complicated??

    Yes, there is another way - create separate apps for each language.

  • Bullet on collision with Object
     Object pick nearest to (Bullet.X, Bullet.Y) -> Object destroy
    
  • What bug are you talking about?

    I tried previewing this example on my android phone and zooming works fine.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Object.count is the number of all instances of this object on the layout.

    Object.pickedCount - number of instances picked by event.

    So, if you want to check if all sprite instances are on animation frame #4, you can do this:

    Sprite animation frame=4
     System compare two values (Sprite.count=Sprite.pickedCount) -> Sprite destroy
    
  • Well, try Paster. For example, if you want to make a screenshot of that jelly fish sprite, set Paster resolution to sprite width and height, set Paster position to sprite.X and Y. Then paste the sprite onto the Paster object. Then invoke download.

  • Masgame , Here is a demo I made for another post:

    dropbox.com/s/lbewjvv6rekd2na/IsometricForest.capx

  • No, browser will not translate anything.

    You can use it to detect user's preferred language, but you will need to provide translations for all text or voice messages yourself.

    Browser.Language="en_GB" -> Audio play "Hello"
    Browser.Language="en_US" -> Audio play "Howdy"
    Browser.Language="en_AU" -> Audio play "Gday"
    Browser.Language="fr_FR" -> Audio play "Bonjour"
    
  • I tried your file and it works for me, the screenshot is saved, but with a few pixels of yellow background on one of its sides (depending on window proportions). Is this the problem you are having?

    You can also try Paster plugin. Basically you paste objects or layers on it, and then invoke download of Paster.imageUrl

  • Not sure if this is correct. "For each" should be before "Pick nearest".

    See this picture.

    If event 767 picks 3 red instances, then "Pick nearest" event will pick only one green instance, nearest to the first only red instance. (although there may be other green instances located closer to other red instances)