R0J0hound's Recent Forum Activity

  • There's no plugin but you can use python to do it.

  • In the same folder as your .cap file is a .persist file with the same name. Delete the persist file and reopen the cap.

    Persist files save the UI state, which can be saved as having no editor windows open. You can also go to the project bar and open a layout from there. And finally you can disable the creation of persist files in construct's config.

  • You can selectively make objects move when the time scale is 0 with the "set object time scale" system action. Then you can use the Sprite.dt expression to get dt.

    For example if you have a sprite with the sine behavior.

    This would pause everything else besides the sprite.

         system: set time scale to 0
         system: set sprite time scale to 1.0
    
    every tick:
         Text: set text to sprite.dt]start of layout:
         system: set time scale to 0
         system: set sprite time scale to 1.0
    
    every tick:
         Text: set text to sprite.dt
  • They've been possible but there is no plugin to make it simple.

    Here is a way to implement it using the canvas object to draw the shadows.

    http://dl.dropbox.com/u/5426011/examples14/shadow_cast.capx

  • 1. Create a Text object on the layout to display the result.

    2. Create a global number called n and set it to 3.7.

    3. Create a "start of layout" event with a "set text" action.

    4. Use this expression:

    ((mid(str(n),0,1)=".")?"":(mid(str(n),0,1)))&((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),1,1)))))&((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),2,1)))))))&((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),3,1)))))))))&((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),4,1)))))))))))&((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),5,1)))))))))))))&((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),6,1)))))))))))))))&((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),7,1)))))))))))))))))&((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),8,1)))))))))))))))))))&((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),9,1)))))))))))))))))))))&((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),10,1)))))))))))))))))))))))&((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),11,1)))))))))))))))))))))))))&((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),12,1)))))))))))))))))))))))))))&((mid(str(n),13,1)=".")?"":(((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),13,1)))))))))))))))))))))))))))))&((mid(str(n),14,1)=".")?"":(((mid(str(n),13,1)=".")?"":(((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),14,1)))))))))))))))))))))))))))))))&((mid(str(n),15,1)=".")?"":(((mid(str(n),14,1)=".")?"":(((mid(str(n),13,1)=".")?"":(((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),15,1)))))))))))))))))))))))))))))))))&((mid(str(n),16,1)=".")?"":(((mid(str(n),15,1)=".")?"":(((mid(str(n),14,1)=".")?"":(((mid(str(n),13,1)=".")?"":(((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),16,1)))))))))))))))))))))))))))))))))))&((mid(str(n),17,1)=".")?"":(((mid(str(n),16,1)=".")?"":(((mid(str(n),15,1)=".")?"":(((mid(str(n),14,1)=".")?"":(((mid(str(n),13,1)=".")?"":(((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),17,1)))))))))))))))))))))))))))))))))))))&((mid(str(n),18,1)=".")?"":(((mid(str(n),17,1)=".")?"":(((mid(str(n),16,1)=".")?"":(((mid(str(n),15,1)=".")?"":(((mid(str(n),14,1)=".")?"":(((mid(str(n),13,1)=".")?"":(((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),18,1)))))))))))))))))))))))))))))))))))))))&((mid(str(n),19,1)=".")?"":(((mid(str(n),18,1)=".")?"":(((mid(str(n),17,1)=".")?"":(((mid(str(n),16,1)=".")?"":(((mid(str(n),15,1)=".")?"":(((mid(str(n),14,1)=".")?"":(((mid(str(n),13,1)=".")?"":(((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),19,1)))))))))))))))))))))))))))))))))))))))))

    What could be easier?

  • You could do a game about the digestive tract like this yoshi's island boss:

    [tube]http://www.youtube.com/watch?v=2tnBijj3m8U[/tube]

    The player would try to survive through each stage of digestion while killing tapeworms and the like. I don't know about the final stage though, kind of anti-climatic.

  • Use a Sprite instead of tiledBackground and use the displacement actions.

    http://dl.dropbox.com/u/5426011/examples14/uv_spritesheet.cap

  • It's working correctly. The dark grey is what's behind the canvas.

    To use destination out correctly create a new layer with "Force own texture" set to yes. Move the two objects to the new layer and then "destination out" will only effect that layer instead of punching a hole all the way through the canvas.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It works fine converted to C2.

    https://www.dropbox.com/s/jmyj5eks115au ... .capx?dl=0

    After Ashley made that example he added to Construct Classic as a system expression. C2 was only a twinkle in Ashley's eye in 2008.

  • If each hexagon is a different object instance you can do this:

    http://www.scirra.com/forum/custom-grid-shape_topic54226_post340446.html#340446

    If you want to do it with math instead here is a formula for it:

    http://dl.dropbox.com/u/5426011/examples14/hex_grid.capx

  • You can create multiple instances of the array and dictionary objects. If you save the uid of a dictionary instance to a sprite instance variable you can use that to associate the objects together and pick them with events.

  • You mean like an inventory?

    You could use a "Dictionary" object to store what objects you have.

    For example say you have a game where you collect bananas among other things and like you said you don't want to add an instance variable per object type. When you collect a banana add it with an action like this:

    Dictionary: Add key "bananas" with value self.Get("bananas")+1