dop2000's Forum Posts

  • I made a demo for you:

    dropbox.com/s/7g0bhiv1kokxgum/ArrayDemo4.capx

  • On every tick

    If object opacity>35 : Object set opacity to (object.opacity-0.1)

  • "On collision" picks only 1 instance of the object (the one that collided). You need to pick all instances, do this:

    Snake On collision with bonus
    ...(subevent)..System Pick All Snake 
    .......(subevent)..Snake set width to [something]
    

    .

    Another option is to use a function -

    On collision call function "IncreaseSnakeSize"

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • When you create a family object, a random member of the family is created. So you need to specify which object you want to create.

    Do this:

    Note that DragDrop behavior is enabled by default for all parts.

    Another option is to add an instance variable "type" to the Parts family and do something like this:

    Parts on GragDrop Start
    ...Parts type=24 -> Parts spawn Attack24
    ...Parts type=26 -> Parts spawn Attack26
    ...
    ...
    
  • There are several ways to do this:

    1. Create a dummy object (an empty sprite for example), set it as Global and add No Save behavior. Move all your global variables to instance variables on this sprite.

    2. Save these variables to Local Storage. After loading a saved game, retrieve variables from Local Storage.

  • Oh, that icon is actually the Enemy sprite! From your first screenshot I thought it was the player, sorry for that.

    Here is an easier way to do what you want:

    dropbox.com/s/xyqy64n9qlwd87f/ChasingEnemy.capx

  • You can add another condition to event #3 (on collision) - "Spike Bullet distance traveled > 50"

    Or instead of "on collision" event you can pick all moving spikes and test if their tip is overlapping tilemap. Add another image point to the tip of spike sprite and do this:

    Spike Bullet speed>0
    For each Spike
    ...System pick tilemap by overlapping point (spike.imagepointX(1), spike.imagepointY(1))
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Have you tried opening it from r120? You can run r120 using this link:

    editor.construct.net/r120

  • You can add an instance variable "animationIsFinished" and set it to true in "On finished" event. And then check this variable in your loop.

  • System compare two values find("Abcdef", "bcd") not equal -1

  • Loop through all array elements (using System-For or Array-For-Each events), and use text expressions find() or left() to compare part of the string, for example:

    Array for each X
    ..Compare two values find(Array.CurrentValue, "b_")>=0
    
    System for "" from 0 to Array.width-1
    ..Compare two values left(Array.At(loopindex),2)="b_")