Zajkra's Forum Posts

  • 8 posts
  • and what with this by the way, i added an array object, all okay, then i added an event with On touch ArrayObject.

    Then when i touch on the screen (on the game ofc) it crashes.

    screenshoot: prntscr.com/16dr3e

  • Hey, i read Arrays manual, and i managed to create one , but i had a problem.

    Look, i need a "panel" of 10 invisible buttons. so i created an Array, height 10, widht and depth 1.

    now, i created a function wich executes some actions for each of the Array "squares" or "places" .

    Then, what i need is to know WICH "invisible button" so wich PLACE of the array was touched, so i can pass it by parameter.

    For example:

    Square 5 of the array is touch, thene xecute the function and pass the 5 by parameter.

    Thanks you, hope you understood.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Link to .capx file (required!):

    skydrive.live.com/redir

    NOTE: If you set the Rotate:Yes for the tower, it shoots, but as i put it on "no" it doesnt.

    Steps to reproduce:

    1. Run the game

    2. Click on the right side of the way.

    3. buy the 275 gold tower.

    4. wait the tanks , it should shoot

    5.Note that if you build it on the other side, it shoots

    Observed result:

    doesnt shoot

    Expected result:

    should shoot

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    win 8

    Construct 2 version:

    r126 free edition

  • Found it -.- thought it would be added on event sheet and not in layout as an object T_T

    you missed to say that on the tuto.

    scirra.com/manual/149/function

  • I can not find how to create functions on free one!!!!

  • Thanks you man!! thats EXACTLY what i was looking for

  • How? i want to organize long events by grouping actions

    And!!!is there any way of making like a "function" wich i could call many times?

    for example Destroying a MenuGame consist in destroying each item of it (i can not use familys, free here)

    So it takes some actions , and i need to destroy the menu in dif events

    So in many events i need to repeat that sequence of same actions....

    thanks

  • Hello im new in c2 i been chilling around with it and is time to ask some questions .

    I was wondering if you could help me with ideas or telling me how to do these things:

    1-

    menu appears when touching oon x object : this shouldnt be an image, it should be like a container or smth with a bg image , and the selectable objects added (so i can add efects on them when selected)

    look at 0:22 on this youtube video:

    youtube.com/watch

    smth like that.

    2-

    I needed to play a War Tank sound when tanks on screen, wich way is better?

    a- Adding events so when tanks come inside screen then play sound , when it leaves stop sound (note, more than one sound playing at same time , but same sound

    b- global variable, when tank goes inside screen, then add + 1 to variable, when it leaves, -1 to variable , then when variable is > than cero, play sound, when less than 1, stop sound (note just 1 sound)

    I ask this cuz im not sure about how it works, if then option a is taking more resources than b or not.

    For now just this....thanks you all

  • 8 posts