Duozu's Forum Posts

  • 7 posts
  • [SOLVED]

    Turns out the issue was the placement in the event sheet. I moved the events further up and it seemed to fix it. Maybe making a separate event sheet to hold all of the events could help, I haven't tried it but I plan to.

    If anyone else has a similar problem, just try moving the events farther up, and try to keep all of your raised events organized to one place, they're not going anywhere.

    Cheers!~

  • Yeah, I never actually noticed it doesn't show up there. Hopefully they consider it in the future. Have a good day!

  • Hey! Unfortunately it seems like it is. Though an alternative would be giving the object and instance variable and setting it true or false based on if the scroll to is active or not. Then you can look at that in the debug.

  • I'm currently making a multiplayer game using the Photon Engine, and so far I've had no problems until now. I made it so I could press a button and set the opacity of an object to 0, but it isn't working, it's not sending the event at all!

    Nothing else in the game is broken, it already works, it has 15 events that work just fine, but if I try to do another one it just doesn't send. I know the problem isn't a max amount of events, I went into another layout and I tested 20 events and they worked fine, I can't seem to figure this out.

  • I have a long list of values that I'd like to import in, but I have no idea how to do it. I want it to import into a dictionary. For example, if I had a list like this:

    123

    321

    213

    And I wanted to import it into a dictionary like this:

    Key: 1 | Value: 123

    Key: 2 | Value: 321

    Key: 3 | Value: 213

    I want to be able just put in the list and it do it for me, the list is here:

    adventofcode.com/2020/day/1/input

    Thanks!

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You need to Vector X and Vector Y in an angle from the player to the enemy. Something like this:

    > Player on collision with Enemy:
    local variable a
    Set a to angle(Player.x, Player.y, Enemy.x, Enemy.y)
    Enemy set Vector X to cos(a)*100
    Enemy set Vector Y to sin(a)*100
    

    100 here is the force of the knockback.

    Unfortunately, I couldn't get this to work. But I was able to figure out a way that works okay for what i'm going for. I just set the angle towards either the player or the slash, depending on what hit it, and moving it at an angle -180 degrees. I may not be the best but I was able to figure it out. Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello! I am making a top-down combat game, (very early stages), and I was wondering how I could push back the enemies when I hit them. I have when you left click it spawns a swing animation, and if it hits a zombie it damages it and stops it from following you. What I want it to do is push back away from the direction i'm hitting it, so combat can be a bit more smoother. Tell me if I missed anything, thanks!

    Here is the link to the game so far, please don't judge the art, it's not final and I made it in like 5 minutes. :P

    construct.net/en/free-online-games/combat-testing-help-17050/f82cc441-54c7-41d1-95b5-99c8625ebddf

  • 7 posts