lionz's Forum Posts

  • Are you trying to destroy Felipe_Anim? because you picked the wrong object to destroy if that is the case.

  • You probably won't be able to make a single function out of every outcome of a key press which is why I wouldn't use functions to begin with because what you're describing is not repeatable bits of code. I use events based on the key pressed, not detect any key pressed then pass the key pressed through a function and determine it's outcome all inside one function, seems unnecessary.

    If I press 'down' then the player falls through a platform, that's one event. In a separate event if I press down and I am in the menu then other things may happen based off menu=1, I don't need functions.

    You can also make use of groups. If you are in the menu then you can disable the player controls group for example.

    Maybe some ******** developer has got an idea about these 'callbacks' and will respond with their input but I wouldn't use them myself.

  • How you are using the functions sounds alien to me. I see it as a repeatable set of actions. If I wanted to have different outcomes I would send through different parameters.

  • Maybe I'm misunderstanding you but you can still call functions using C3 and I don't see an issue.

  • You do not have permission to view this post

  • This looks fine assuming those events are running all the time, you didn't show the top of the event.

  • Ask an artist to make you one :)

  • Why that function runs few time if it is inside an event that should be generated only one time if true?

    I don’t understand this :(

    It's not, you've put the condition outside of the event on its own instead of as a sub event. Or if it's meant to be on its own then it needs a trigger once.

  • Another thing is that TurnN is supposed to add +1 at the end of each turn, independently if is point or not.

    I don’t understand why if it is point, this variable correctly increments by 1. If it is not point it seems that it add a random number (like ticks number).

    There are a few bugs around. You could do with trimming down the logic tbh. I see a problem at line 68 where this could run a lot of times so this means you are running that function every tick and maybe contributes to the variable

  • I didn't really see any problem with changing to the other player. Sometimes the arrow keys stop working when it is a player's turn this is probably to do with your activating/deactivating groups.

  • 'something stops to work' ? really that's all the info you can give us. well i see that the targeting stops working sometimes so the arrow keys are not working, if you mean this then double check the deactivating groups logic.

  • You are creating an object Text then trying to set the text on a different object txt_score

  • I imagined it more like an inventory where you tick off tasks. So how does the game work ? Maybe it will be better if you fill the array from a predetermined sheet which is a list of items if you know the items in advance. Then you can have a second column for found/unfound which would be like a 0 or 1.

    Your logic looks reasonable, maybe the array size is not set and you need to add more columns? If changing one to found later, you could grab the UID of the object and search for it in the array then delete it.

  • You could try with an array

  • What are you saying the coffee moves up the screen and should begin colliding again and it doesn't work ? The event looks ok to me but I can't imagine the game.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads