Snalec's Recent Forum Activity

  • Hello,

    I'm currently working on a vine level gimmick in my game. Essentially, there is a berry seed thing that when pushed into a pot grows a climbable vine. I got it to work fine, but when I place another instance of it in my level, the second vine will activate when the first one activates. Usually when stuff like this happens the "for each" conditions fixes it, but it isn't working for this. Why doesn't the "for each" work in this case? Am I using it wrong, or do I need to use something else?

    Thanks

    drive.google.com/file/d/1EB4tDaAoHSblTJnMCOw2yMZoSqqp5IVd/view

  • You do not have permission to view this post

  • Awesome! That worked. Thanks!

  • Hello

    I'm having issues with time scaling. I recently put Mega Man-like scrolling into my project, where when the screen pans the player and enemies freeze. I did this by setting the time scale to 0. Then, when my moving camera has arrived to its destination, I have it set to put time scale back to normal.

    My death animation also uses time scale. It sets the speed to 0.15 to make it look like it's going in slow motion. However, since I implemented the freezing when the screen is panning, the death animation doesn't slow down anymore.

    However, when I go into debug mode and initiate the death animation, it shows that the time scale is 0.15, but with the speed the player is going it seems like the time scale definitely isn't 0.15.

    I know it has to do with the events that control freezing entities when the screen is panning (events 15 and 16 under scrpt_general), because when I delete those the death animation works fine. I'm just not sure exactly what's going on with it.

    Here is a link to my project files: https://drive.google.com/file/d/11hAqqt-x09S-tHeHuD4i5gR_vilu2KL_/view?usp=sharing

    To see the problem, walk directly into the cave and get hit by the enemy. The player will fly quickly back which isn't supposed to happen. To see how the death animation is supposed to look, delete events 15 and 16 under scrpt_general.

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I fixed it by adding a condition to event 14 that makes it only activate if camerafixed.X does not equal camerafixedorigin.x. My death animation uses the time scale function to make it look like it's happening in slow motion. But now my death animation won't scale the time down. I assume this is because of event 16. For some reason camerafixed is constantly arriving. Why is that happening? Since I put in that check the camerafixed shouldn't be moving and arriving anymore.

  • Thanks!

  • Hello,

    I'm having some trouble with taking damage in certain areas. I recently implemented fixed camera screens. Where instead of scrolling the camera will stay fixed in one area and then pan to the other. For some reason though, when I get hit by enemies in these fixed camera areas, my player turns invisible and doesn't take damage. When I walk back to a normal scrolling area, my character flashes like he took damage and returns to normal. I assume this has to do with my events that play out when my player takes damage. But looking over those events, I don't see how the camera would effect it.

    Here is my project file: drive.google.com/file/d/1XXxEobpweiX9qJV7W7mIyytLBJWTW4zs/view

    To simulate the problem walk into the cave and take damage. If you walk out of the cave and back to where the camera scrolls the player will become visible again.

    Thanks!

  • Got it working! Thank you both for the help!

  • Hello,

    I started working on an enemy that drops down from trees when the player gets close to it. It all works, however, all instances of this enemy seem to be tied to the first instance of the enemy. For example, when I trigger the one enemy to fall down, all instances of the enemy, no matter where they are on the layout, fall down too. I'm not sure exactly what's causing it.

    Here's a link to my project file: https://drive.google.com/file/d/1eKtLjsz3xBV67wi_tm0MOcwKe4OfIxFZ/view?usp=sharing

    Thanks in advance!

  • You do not have permission to view this post

  • That worked! Thanks! Glad I know about that timer feature now. It will be useful when programming other enemies.

  • Hello,

    I've been working for a few hours trying to set up some simple enemy ai.

    Here is what I want my enemy to do:

    1. Wait for 0.5 seconds

    2. Choose to move left or right for 0.5 seconds

    Then I just want this to loop forever.

    Tutorials I have watched have suggested giving the enemy platformer behavior, setting up an instance variable, and setting certain values of the variable to correspond to left, right, etc.

    I first tried doing this (with 1 being sitting still, 2 being left, and 3 being right):

    When variable is 1 > wait 0.5 second

    set variable to 2 or 3

    When variable is 2 > simulate left

    wait 0.5 second

    set variable to 1

    When variable is 3 > simulate right

    wait 0.5 second

    set variable to 1

    This would make the enemy rapidly switch between left and right at inconsistent rates. I'm not sure exactly why this happens. My best guess is that, since the variable is always 2 during the event, it resets it instead of waiting? I'm really not sure.

    Thanks in advance!

    Tagged:

Snalec's avatar

Snalec

Member since 1 Jul, 2015

Twitter
Snalec has 1 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • x2
    Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies