gamewanderer's Recent Forum Activity

  • korbaach

    thank you very much for all the efforts, I have a clearer understanding of using Construct2 with some aspects I never thought before. This means a lot to me..

  • First of all, I must say you have created a more advanced game out of 2 newbie questions and you're about to produce a complete product ))

    I am checking your sample without JSON, because I am not familiar with JSON at all, yet.

    At start of layout:

    You set a 2 dimensional array with SpriteCount ,2 (SpriteCount array)

    And you create another array (0,1,1) (ArrayPosition) so, initially this array has 0 size.

    Then,

    You go through all the instances of the Sprite, you set the values stored in the array's 1st column, to X values of the sprites, and you set the values stored in 2nd column of the array to the Y values of the sprites.

    I can understand that you are triggering the "Set" method (or function) when the Sprite.Count is 0. This happens both when the user clicks and destroys all boxes, and also is triggered at start of the layout because there is "Sprite Destroy" item at start.

    I am trying to figure out the "set" function,

    A local variable named Rnd is created and set to 0, OK.

    A for loop is created, it will use "frame" variable from 0 to ArrayPosition.Width-1 which is 1 less than the sprite count, OK. It will be looped for Sprite.Count times as it starts from 0.

    "Push back loopindex on X axis" -> you insert loopindex value to the ArrayFrames array, and I guess since you are pushing to X axis, it should be like (0,1,1) where 0 is X. That would populate the ArrayFrames's X address with 0,1,2,3...15 for 16 sprites.

    WHen we come to ForEach statement, we create a random integer between1-15 (width of ArrayFrames) and then Create a sprite at positions related to ArrayPosition.At(ArrayPosition.CurX,0), ArrayPosition.At(ArrayPosition.Curx,1) I just couldn't get where this part can get the actual position information instead of just 0,1,2,3...

    After creating the sprites, the animation frame of each sprite is taken from the randomth element of ArrayFrames array. This is a very clear and clever approach, IMO.

    I have 2 things that I couldn't understand completely:

    1. How do you prevent repetitive numbers to take place? I couldn't get that part of the logic in the event sheet.

    2. How is the actual coordinates set? (ArrayPosition.CurX stuff)

    You've already done more than I would expect, so it is still OK if you wouldn't like to explain further

  • Hello korbaach,

    Thank you very much for your interest, this must have cost you some time.

    I'm at work, and will be checking the files as soon as possible.

    BTW, I would rep+ your post if there was a button for that

  • scirra.com/forum/viewtopic.php

    ahha, worst game ever ))

    thank you for the input, I am checking your capx.

    Edit: This is something that perfectly fits what I need and I think your design is very sophisticated. Although it is difficult to understand, it created an inspiration

  • More or less, it will look like this. I just want to learn some options on reflecting an array into a visual like the one below

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello all,

    I am trying to make a basic number puzzle game.

    I have written down my algorihytm on a paper. I also have written my methods to make it ideally playable.

    Now, I want to try visualising it on Construct2, for this, I need to pass the numbers stored in my array (4x4) to the game board and the user should be able to click them.

    What should I use for that kind of design? I have been looking at an empty layout for 1 hour but couldn't think of something productive. Should I create a background with 4x4 squares, or should I create number blocks (only 16 numbers in the game) in photoshop as sprites?

    To sum up, I am trying to visualise my 4x4 array, and will be very grateful to hear any ideas

    Thanks

  • Hello guys,

    Thank you very much for your descriptive and helpful responses.

    I decided to buy Construct 2 on Steam, I'll be more active soon

  • It is great to hear that. Thanks for the info

  • Hello there,

    I am a newbie, not only for using Construct 2 but also for making games with any other tool.

    Currently I am considering buying Construct 2 from Steam, but I would like to confirm some questions or ask for your experience.

    I have been using the free version of Construct 2 from Steam and never had any issues (no crashes, no authenticity problems etc.) and I really love using Steam, so I wouldn't mind opening steam and running Construct 2 under it.

    But what about the custom content posted in Scirra forums, like plugins-extensions? Can they also be used with Steam version?

    And, for the assets bundle given to the personal licence buyers, I think it is also available for Steam customers, right? I saw these lines in Construct 2 blog and just wanted to know if it is still valid:

    [quote:o0g9urrq]Media bundle

    Normally when purchasing Construct 2 we email you a link to the media bundle with your sprites, sound effects and music that you get with the license. This doesn't happen when buying on Steam. From r117 and onwards, there's a one-time prompt to download your bundle, and there's also a link in the About dialog to download it. If you don't want to wait until the next stable update, email us at and we'll send you the bundle.

gamewanderer's avatar

gamewanderer

Member since 9 Mar, 2015

None one is following gamewanderer yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies