lionz's Forum Posts

  • You can use one object for the spawn locations and make it invisible so use a sprite for this then it should be one function for all teleports in the game as you were attempting to use. Send layout to go to and targeted ID to use for set position of the player as parameters in one function.

  • You may be able to set solid collision filtering with the tags to make the family ignore collisions with itself, try it!

  • Change magnitude to a negative number

  • Well i'm no maths expert but my approach would be something like :

    - divide by 100

    - floor the return value i.e. floor(3.9) = 3

    - multiply by 100 = points

    So if your score is 360, would be 3.6 = 3 = 300

  • I think you can make the wall solid then it won't move into that tile occupied by the wall?

  • Yes exactly remove the solid behaviour

  • I don't think the post was any more specific than the subject? :D but in general you can use the Fade behaviour and trigger it to fade in and out based on distance between the player and an object using distance(player,object)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't see how that could happen if they are all moving together. They have different speeds? Did you give them a solid behaviour?

  • What's the problem? They should move together and you don't need the for each btw

  • Looks good

  • If you want the enemy to shoot more bullets you modify the time right? The logic looks fine there. You can add a instance variable to an enemy which acts as shooting speed and use this every enemy.variable seconds.

  • i found a not very good way to do this. it requires copy and pasting code and changing the added angle all the time, which its not good if you want to shoot like 32 bullets at the player

    what do you mean?

  • Basically with the function you're passing parameters through but could be assigning them to a different Cell than the one you spawned if you are spawning them fast. Since the Cell is already picked at the point of spawning you can set its value in the event above, no need for a function or second event at all, unless like I said you guarantee it is the correct one by picking by UID.

  • How fast are cells spawning? You can use browser logging to determine the UID of the picked Cell and see if it's the correct one and also log the parameters being sent through to locate the error.

    edit : I see you used a text object for the params so you must know they are correct then check if the picked Cell is correct. You could use something better than last created which is to send the Cell's UID through as a parameter since you spawn it before and then pick Cell based on this UID within the function.

  • Can you change the screenshot from russian? Although I can make a guess, you cannot pick created instances until the next tick. Because this all happens in sub events the instance may not exist yet, so you can wait for the next tick with system wait for previous actions or use separate events etc.