Tuiii's Forum Posts

  • Let's say I have a server and I want users to upload a video file to it so other users can watch it.

    Is it possible? How can I do that?

  • simplest solution, not so elegant

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

  • system > for (for "x" from 2 to 3) and (for "y" from 0 to 1) --> array > set value at XY (x = loopindex("x"); y = loopindex("y"); value = 0)

  • Awesome. Thanks, works perfectly!

  • How do I fill an 1d array with 16 width randomly using values from 0 to 15, but those values can't repeat

  • Nevermind. Solved it

  • Store in an array and push whatever numbers you unlock to the array. So if you start with 0, 1, 2 and unlock 5 and 6, you push 5 and 6 to an array. Then you choose a random value from the array.

    I thought of that but I don't know how to choose a random value from the array.

  • I'm making a bejeweled style game with blocks. At the beggining you only have 3 types of blocks. As you go on playing you unblock new block types that dont have an exact order to be unblocked.

    For now I'm using multiple frames to dictate which block will randomly spawn. So at the beggining, when the blocks are created, the frames 0, 1 and 2 are being used in a "choose (0,1,2)".

    How do I include other number to this "choose" along the in-game progress?

  • This may be helpful

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Your local variable needs to be reseted. When the new instances are spawned, the local variable i is 7 instead of 0.

  • SpriteB Set position to another object > Pick Sprite A and image point 1

    Whenever you refer to SpriteA.X or SpriteA.Y you will pick the coordinates for the image point 0, but if you add a (x) after it you will pick the x image point coordinate, e.g. SpriteA.X(1) picks image point 1 coordinate X for SpriteA

  • Rexrainbow has some very interesting plugins for board games, you might want to check them out

    http://c2rexplugins.weebly.com/map.html

  • >

    > > Okay, I "finished" what I was creating for you. It's very glitchy right now because it needs a lot of improvements. But the main idea allows you to do what you want.

    > >

    > > You can download it here:

    > > https://dl.dropboxusercontent.com/u/231 ... cenes.capx

    > >

    > > Let me explain what I did:

    > > On the layout you can see a some scenes. They are designed scene 1, 2, 3 and so on based on horizontal displacement. The code recognizes the scene based on the position, so that's why I created some sort of grid with the pink bars.

    > >

    > > On start of layout, scene 1 will be picked and a random scene (excluding scene 1) will be picked for next scene. All objects positions and angle are stored in local variables.

    > > When a scene is picked, all elements inside the area designed to that scene will be picked. Made that using families for immovable and movable objets.

    > > All objects overlapping the picked coloured background (bg) are pinned to it and than the coloured background is moved to 0,-bg.height (except for the first scene {scene 1} which goes to 0,0).

    > > After that, objects are unpinned and they start moving down with custom movement.

    > > When the coloured background collides with a detector at 0,2*bg.height, bg is moved to it's previous position (stored in local variable at start of layout) and all objects that were overlapping it are also resetted to their initial positions, than pinned to bg again. (This part is glitchy, needs improvements)

    > > Also, when detector is collided, a new scene is picked and created on top of current scene.

    > >

    > > Hope that wasn't much confusing and also hope that suits what you need.

    > >

    >

    > Thank you so much! <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz"> You rock!

    > This think really helped me. I understand your idea. Yes, it needs a lot of improvements. Some levels overlapped, needs optimize windows size (camera) vs. I love Construct 2, really amazing! Thank you, I am working on improvements.

    > I want to learn Construct 2. I have 4 amazing book for Construct 2 learning. Let's see what can I do?

    >

    This exactly what i also want to do in my games (build a buildbox-like game, but with the added flexibility of the event system of construct 2/3. Could you please repost the scenes.capx example you made, so that i can learn from it on how to implement it? (it is not accesceble anymore on dropbox due to their changes).

    Any one other suggestions on how to do this? Maybe the original poster?

    Thx in advance!

    Here you are, sir

    https://ufile.io/ibiwy

  • I see... Well, thanks anyway! Keep up the great work!

  • Update

    Add property "Modest branding". Set "Modest branding" to "Yes" to remove youtube logos.

    Tuiii

    Removing youtube logos (set "Modest branding" to "Yes") might prevent clicking the YouTube logo.

    Didn't work

    I set Modest branding to Yes but the logo and this little info button are still there:

    It works when Show info is enabled, but again it would be possible to click the video info and go to the youtube page.