lionz's Forum Posts

  • You enable/disable the platform or 8-direction behaviour (however they move). Assuming they are two different objects, have an instance variable on the change player button that goes between 1 and 2 when clicked or something similar. When the button shows 1, then enable movement on player 1, disable on player 2, when the button shows 2, then disable movement on player 1, enable on player 2.

  • What seems to be the problem?

  • No problem

  • I set a value of 16 at x=47, y=2. Loop runs through all x at y=2 to find it.

    https://dl.dropboxusercontent.com/u/495 ... check.capx

  • Yeah use a for loop for 0-50. Then compare at xy, where x is 0 and y is loopindex. It'll run through all Y and check for whatever value you put in. Or just alter that functionality to do whatever values you want with a loop, I guess for yours you run the loopindex on x and compare against y=1 or y=2.

  • It wouldn't, I didn't realise you were filling it with numbers. You can probably limit it to the Y axis somehow, I'll take a look. There's a for each element check as well where you might be able to compare at Y only.

  • 'Contains value' is a check throughout the whole array that a specific item exists, is that what you want?

  • Did you try the dismissed method? Seems like it might work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You mean you are looking for a team? There's a different section of the forums for that.

  • Link is broken. (yes with * removed lol)

  • Setting timescale to 0 does pause the game. Whatever your time variable is though, at the point where you want it to be stored set the time to a global variable something like CompleteTime so it is static and then display the global variable, that way time can continue but you have the completion time.

  • In general I think it's better to use an array for an inventory. I've had this issue before, I started off by using a physical style inventory where you compare animations and if slot is full by instance variables and the events begin to snowball. It is much easier to use an array and relate it to co-ords in an inventory. That way you can check what value is in the array 1,0 2,0 3,0 etc and match with the item you want. It also cuts down on events. If you want to use your current method I'll have a read of your essay in a bit

  • Yeah that post is good if you want to make your own from a sprite. There is also a built-in progress bar in C2 which you can try.

  • Well swapping will occur every time because you have no checks for if it would be swapped onto a wrong item space. The other issue is the same, there are no checks against is a sword trying to be put onto a helmet space. The latency, no idea seems fine to me.