kbfc00's Forum Posts

  • 10 posts
  • Now I see it. Make sense now. As where the event happens.

    So correct, no instance of 'object1' in the layout = 0.

    So that's it !

    Simple solution when thought about how the process goes.

    Thanks Ashley, Kyatric for the quick & easy to understand replies!

    Now onwards to success ! <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Hi Ash,

    yes, i've tried. but when i try to do the Set Value at 0 to object1.itemNum >> (itemNum is a Number type for the variable)

    and the value for this variable is 4

    and I use Set Text to array.At(0) for de-bugging

    but the value return shows 0

    And the thing is now that my object is being placed at, lets say, Layout1.

    And im using an event sheet from Layout2 to do the events.

    So basically Im trying to retrieve the object instance variable value from Layout1 and set it at event sheet for Layout 2.

    Update:

    When I tried placing the object in layout2 itself, it works. it return the value.

    But is it possible to retrieve the value like what I described above ?

  • 1) You can organise event sheets how you like. You may wish to use Includes to share the game code between layouts, or have separate events for each layout.

    2) kbfc00 isn't quite right there - global numbers appear to the entire project even if you don't include their sheet.

    Ahh i see, something new I've learnt. <img src="smileys/smiley4.gif" border="0" align="middle" />

  • 1st qn: Not necessary to add event sheet to every layout created. Like sqiddster mentioned, they can share events.

    2nd qn: Yes whole project but remember to use Include: for eventsheets that using the global number.

  • But you better get used to write program logic like flowcharts. Might wanna check out the code for GLSL HLSL shaders.

    You still have to reprogram your mind from artist mindset - outlook, colors, shading - to a programmer mindset: mathematics, logic, code flow, variables, arrays.

    I agree, but take it slow. How about learning about game flow first. Get the basic logic of a game first. It's about step by step. Once you get the flow, you understand the game better (or your game better).

    Something like this for a start.

    gameflow

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You bet you can. Im creating one, topdown turnbased too, like you mentioned. Though it takes a few moments to learn on this aspect, Im sure it will be a success!

  • Hi All,

    I have read few posts regarding arrays. Some were simple some were abit complicated but having fun reading it anyway. <img src="smileys/smiley36.gif" border="0" align="middle" />

    Okay so I just want to understand abit further on arrays and I also have read in the Manual.

    But Qn is, for simple one,

    eg. Set size Array(2,1,1)

    then we passed in values, Set Value at 0 to 4

    and if I were to retrieve using array.At(0) it will return me 4.

    then we passed in values, Set Value at 0 to "Test"

    and if I were to retrieve using array.At(0) it will return me Test.

    So I read some about converting the values to int or str but when do we do that?

    And can we set the array value from an instance variable of an object into it?

    Eg. Object name: object1

    variable for the object is named "itemText"

    type "Text"

    value is "TestVariable"

    Can we set it Set Value at 0 to object1.itemText?

    Will it return TestVariable?

    Warm Regards

    kbfc

  • True, many of us will like to have that feature, like a specific function for tile map where you can place your map then the objects then the waypoints etc etc.. but i have read before regarding this suggested-capability (try to search thru the forums im sure there is), and if you search too in this forum, on grid movements, by which there IS an example of grids which is IMO is the same as tiles.

    Refering to the example, you can make your own tilemap with Construct. and btw i myself am creating a topdown view Action turn-based game. And it will be mostly dependent on tiles cuz alot of things that the player will be interacting are tiles ! hahhaha.. but really, try to search on grid movements and you can move forward from there.. just need to do a bit tweaking and adding ons, and it will be a success im sure :)

  • you can start with that

    http://dl.dropbox.com/u/23551572/C2/gridMovement.capx

    This is a great example to start with ! We can just refer and use the concept in our games! Thanks Yann! <img src="smileys/smiley4.gif" border="0" align="middle">

  • 10 posts