Monketo's Recent Forum Activity

  • You do not have permission to view this post

  • I had some of the same issues mentioned above, but I use them fairly often and lately without much trouble. It can be super helpful.

  • Worked like a charm. Thank you!

  • So, here's what I'm trying to accomplish. I have a dragable object (not using drag & drop behavior) that I want to face in the direction the user is dragging. I'm using the following equation to accomplish this:

    Set OBJECT angle: Angle(0,0,OBJECT.Physics.VelocityX,OBJECT.Physics.VelocityY)

    This works but is very janky. See the gif:

    Is there a way to smooth out this behavior? I was thinking of maybe only adjusting the angle when larger changes in velocity are made instead of adjusting every tick, but I'm not sure how to code that.

    I'm going to work on testing that theory out, but I thought I'd check to see if anyone else has a better idea of how to achieve this.

    Thanks!

    "The requested topic does not exists"

  • That's it! Thank you both!

  • When transitioning out of a layout I apply the pixellate the transition so it get's more pixellated over time using this equation (taken from an example project):

    set parameter 0 to: ((time-transStartTime) / transDuration) * 100

    I need to find the inverse of this so that I can start the next layout "pixellated" and get less pixellated over time.

    Thanks!

  • Thank you narFsnw! Setting to static was what I needed.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a 'Wait for Signal' action inside a function. When I trigger the signal and return to the function I want to go to another layout which is defined by a parameter that was passed to that function. However, when I return after the signal the parameter seemingly is null. Before the 'Wait for Signal' the parameter is correct.

    I've tried storing the parameter in a local var too, but it gets set back to its default value when the signal is triggered.

    I tested this by placing a string variable before the 'Wait for...' and then after it.

    Is this to be expected? Do I really need to store the parameter to a global variable?

    Screenshot of the even:

    http://i1070.photobucket.com/albums/u490/EricThomasGames/Capture_zpsbnefgh2o.png[/img][/img]

  • Oh boy. After all these years I'm still making dumb mistakes and overlooking the simple things. I didn't have the layout assigned to the even sheet. Please don't tell anyone

  • Hi All,

    This is probably me doing something wrong, but for the life of me I can't pinpoint it.

    I have an 'Every Tick' action that isn't under any other action. It's working on one layout, but not the other.

    Is there anything that would cause Every Tick to only execute on a specific layout or that would otherwise cause Every Tick not to execute at all on a particular layout?

    Thanks!

  • I was able to get this working correctly by calling the function in a different location (and it cleaned my code up in the process). But the issue still exists, and I can't explain why the first time the function was called it wouldn't actually execute.

    So, I'll leave it up to you as to whether to close this or not. Thanks.

Monketo's avatar

Monketo

Member since 19 Oct, 2011

None one is following Monketo yet!

Connect with Monketo

Trophy Case

  • 13-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies