Majinboo's Recent Forum Activity

  • Check the last capx of C-7 user in:

  • blackhornettechnologies.com/Construct2Stuff/arrayspawnandsetvalues_BHT_d.capx

    Amazing!!, Thank you so much!!!!!!!! , now i understand more the arrays, i need to reread more about loopindex but with this example i understand a lot more.

  • i tried removing for loops but didn't work <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

    http://www.filedropper.com/arrayspawnandsetvaluesbhtc

  • Just store the loopindex in the redcube when you create it, then you now exactly which X to index.

    Now its working ok to replace the color value, however i tried to replicate this with the overlapping object to modify level value but didn't work, the browser events are only useful with mouse clicks?

  • I suggest you drop the Array FOR events, and stick to the system FOR loop. You are mixing one and two dimension events, which is confusing things.

    http://www.blackhornettechnologies.com/ ... BHT_b.capx

    Event 8/9 doesn't work because you change the colour to black and then try to find the matching colour, which you just set to black, so it doesn't exist. For 11/12, you are trying to set to CurY but there is no CurY as you are only looping in X.

    Now its replacing for example the orange value in the entire array not only in the specific object, for example i clicked orange object but didn't click Carrot Object but in the array now the value of carrot color its black, isn't possible to modify the array just picking the object? overlapping -> set value in the object didn't work too.

    If i am overlapping an object or clicking an object i just want that construct2 find in the array the object by name (names are in Y1, for example c2 will find carrot in Y1) and modify a value of the object, for example i clicked a carrot then construct2 will find the carrot object in the array and then will modify the value of the color "orange" to "black", and if for example i am overlapping the object then sum +1 to the level of the object, i am trying to do this in the capx.

  • Your array seems fine. It's your other events that are mixed up. See if this helps. You were loading your array after creating your cubes, due to the Destroy. I've moved the cube off of the layout, and call Spawn directly on startup.

    http://www.blackhornettechnologies.com/ ... s_BHT.capx

    i am using the debugger to check the array values and the value of color didn't change in the array and the value of the level didn't change correcly in the array when the object its overlapping.

    I am trying to use my logic here and i don't understand why didn't work.

  • why arrays are so hard :\</p>

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • once the player changes an animation it does not change back. I want to make it so on tap sets animation to "1" and when I tap a second time it should set animation to "0" and vice versa

    Check it

    http://www.filedropper.com/animationchange

  • hello guys,,

    i have 2 sprite

    the Sprite1 when press it the sprite 2 start animate..

    the question is : how to make the Sprite2 to stop Animate when press again the Sprite1 ??and vista vesta...

    capx

    http://www.filedropper.com/onoff

  • Hello everyone, I'm having trouble assigning a sprite object to another sprite objects.

    https://www.dropbox.com/s/n61pvuvthed9b ... a.png?dl=0

    I have two sprites, a Human sprite and a button sprite. Whenever a new human sprite is created, it spawns 3 button sprites(with different image frames). Whenever I tap a button I want the human sprite to do a certain action depending on which button frame it is on. (e.g. If I (on tap tree button) Human sprite move to tree). The problem is that all the human sprites are doing the action whenever I press a button. I only want one of human sprites to do an action whenever one of it's buttons is touched.

    So how can I make the buttons sprites work for only one human sprite?

    if you upload your capx its more easy to the others to help you, you can make a new capx with the issue if you don't want to share your complete project.

Majinboo's avatar

Majinboo

Member since 21 Jun, 2015

None one is following Majinboo yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies