lionz's Forum Posts

  • Do you mean in random position/direction or that you have a list of items to randomly choose from? There is choose() expression, maybe this will work. I'm imagining you mean something like a loot box but I could be wrong.

  • Seems to be as designed that if you load a game that involves transitioning to another layout, it runs through events after the game load. Some are skipped though like 'on start of layout' events. I wouldn't expect anything different because loading the game in a sense is going to or loading the layout unless you are already in it.

  • Yes that is how Construct works, you pick with conditions and apply actions to picked instances.

  • Yeah you add to the condition something to pick the target object. If it also has an instance variable for name then you can use this.

  • This sounds very overcomplicated, what do you mean by 'named instances' ?

  • You do not have permission to view this post

  • If you hit the enemy then you set the instance variable on that enemy, should be that simple? If for some reason you must save what was hit then you can save the object UID as a global variable.

  • The hitbox should be updated for all frames of all animations, there is a quick way to do this with right-click apply to all. That might be the issue here.

  • You can apply the set speed action with the GV on the events when you change animation too.

  • Set a global variable to the speed value, then the event would be 'on sprite created set animation speed to global variable', so one event for all sprites. Updating that global variable is up to you, maybe it changes based on the current level or something like that.

  • My logic will give you a number of sprites that have moved.

    You want a condition that checks if any sprite has moved.

    So the condition is to check if the variable is greater than 0.

    Does that make sense?

  • Using the logic that moves the sprites then at that point you could set a variable to say it 'hasMoved'. Then when you swipe, you check against a global variable, the GV being number of sprites that have variable 'hasMoved' set - for each sprites.hasMoved=true, set GV to sprites.pickedcount.

  • So the origin is in the wrong place? Assign it to the middle of the object.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • supportgrr@construct.net

  • For me Sort is confusing unless you use a single row or a single column. There is probably a way to do what you need though.