dop2000's Forum Posts

  • So what's the problem? Global variables should be accessible from all layouts.

    Make a separate global variable for each of your characters and that's it.

    You can also use a dictionary or an array to store high scores, set Global=yes and they will also be accessible from any layout.

  • Aguamoose

    Oh my goodness...

    Why don't you add another sub-event under #101 and replace all those lines with this:

    For "offset" from 31 to 1
      Set value at (ArrayTilemapper.CurX, ArrayTilemapper.Yaxis+loopindex("offset"), ArrayTilemapper.Zaxis) to "Sand"
    [/code:3v4ffqq5]
    
    Also, you should use variables instead of fixed values. 
    If you put "Sand" in 10 events and tomorrow decide to replace it with "Grass", you'll need to edit 10 events. 
    If you add variable TerrainType="Sand" and use it in 10 events, you'll only need to edit 1 variable.
  • I thought a large 1x1 px tilemap would be insanely slow. I underestimated C2 again..

  • R0J0hound

    Wow, this is so cool and works so much better than my petty attempt!

  • I understand you question, but you didn't provide any answers to my previous comment.

    Your walls - are they sprite object or tilemap object?

    If the wall is sprite, you can create another frame for metal wall and an instance variable "wallType".

    For rock walls set animationFrame=0 and wallType=rock

    For metal walls set animationFrame=1 and wallType=metal

    When player collides with the wall, add another sub-event to compare wallType. If wallType="rock", then enable wall jump. If wallType="metal", don't enable wall jump.

    With tilemap it can be a little trickier.

  • Have you tried contacting the author of this engine? It's his job to fix issues like this.

    The virtual joystick works on PC with mouse, but doesn't work on my mobile phone. Maybe there is some mouse event that is causing this problem.

  • JMTook, How did you make your walls? Are they sprites or a tilemap?

    Do you have different objects for metal and rock walls, or are they instances of the same object?

    It would be much easier if you share the capx.

  • , there are 4 pages in this post. Which comment are you referring to? What exactly are you trying to do?

    Please also share your capx or a screenshot of your code.

  • luckyrawatlucky, no, he needs to play two animations at the same time.

    One hand blocks with the shield, another hand attacks with the axe - both at the same time!

  • Add "Key is down", then right click on this condition and select "Invert"

  • You don't need to calculate the shots, just use Bullet behavior with gravity.

    The hardest task would be removing parts of the terrain after explosions and figuring out how to move tanks on the changed terrain.

  • Hey MPPlantOfficial

    At first I though "how hard can it be? Just pin links to each other!"

    Turned out - quite hard <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Here is what I came up with:

    https://www.dropbox.com/s/4ach2ss7ujtbx ... .capx?dl=0

    The code is quite dirty and can be optimized, but I hope you find it helpful.

    Sorry, I didn't modify your capx, it's too complex.

  • You can also check this post:

    It's the same logic, just change the formulas to follow instead of moving away.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm guessing you did not create a new sprite Hero, you made a new instance (copy) of the Monster sprite and renamed it to Hero.

    Or you may have both sprites in the same family and "hp" variable is defined on the family.

  • You can deactivate Groups. Put everything on the event sheet into a group and you will be able to deactivate it.