;( Arrays Tutorial ?

0 favourites
  • 10 posts
From the Asset Store
Carousel Animation, make carousel of you image gallery or anything
  • I really need to use them in my games but they are really hard to use for my mathematics level , I really need to learn how to use them :( Any tutorials on how to use them or a plugin with simpler event-based controls ... Maybe tutorials for some procedural generation with arrays ... Remember , the logic is here but can't do it in c2 ... Any help is appreciated !

  • If memory serves, your capx from before showed you understood them fine. What is it you don't get?

    Or are you looking for things to show their use? Like for example what you asked there, procedural generation with arrays? If you don't understand arrays, then you'll have a hard time with something like that, as you'd be trying to learn 2 things at once... unless you already understand PG.

    Let's start with what you understand about arrays eh? ;)

  • procrastinator , I understand what is an array in general , but I don't understand how to use them in C2

  • The good old how do I FAQ contains a full section about arrays with a recently added "Endless Procedurally Generated Terrain" item.

    For tutorials, there's the always nice arrays for beginners.

    I also show how to use an array for some high scores management in my Asteroid in less than 100 events tutorial.

    The creating a memory match game also displays another usage of the arrays if I remember correctly.

  • Doesn't help me a lot ... I should've precised it ! I want to know how to navigate an array ... And be able to see it in realtime ... and be able to detect at different directions and also move at different directions and make some procedural dungeons like in Roguelike type games ...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Bump ...

  • Navigating the array would be done via array actions like Array.At(X, Y) or similar, it's all covered in the tutorials linked previously.

    Don't really understand what you mean by 'see it in realtime'? For debugging or what? You could make text where you print array contents each tick.

    each tick

         for each value array (x,y)

               append array.CurValue to text

               if array.CurY = array.width-1

                   append newline to text

    if you wish to do something roguelikish and generate maps using array.. I'll post a little example soon.

    EDIT: Here you go dl.dropbox.com/u/19921470/roguelikish_map_generation_via_array.capx

    Simple eaxmple, a playable roguelike would of course need much more sophisticated randomization. And thou shall not mock my artistic skills :)

  • Well you mentioned your math level is low. Have you at least had some algebra?

    If not, it is highly recommended, especially Cartesian graphs.

  • Hi Whiteclaws,

    Arrays cam be hard to grapple. I managed to make a few. I was following some of the tutes and examples around here, but it still had been a pain in the brain to make them and or call on them at first. I have a capx with 3 arrays in it, and some other crap. It generates a random tiled background (changed with a right click), and there's a text array, and another one, cant remember much about that one. Maybe you can pick it apart and make some sense out of it....https://dl.dropbox.com/u/91685197/arrays.capx

  • newt I know all those stuffs , But I just started them tho ( I'm at the algebra 1 variable equations ... )

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)