Nimtrix's Recent Forum Activity

  • Whiteclaws

    I think you may have missed the point, he's looking to have enemies that patrol, chase the player if in view, but return to their original, pre-determined path if you escape or die. None of the examples in the FAQ cover this as far as I can see.

    Edit: I'll probably have a go at this when I have time, need an excuse to test out the LOS behaviour anyway.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Whiteclaws

    Indeed, at least I provided some additional info, so not completely useless. <img src="smileys/smiley14.gif" border="0" align="middle" />

  • Well, I can't help with no info about the problem. <img src="smileys/smiley2.gif" border="0" align="middle" />

    You can upload your file to dropbox then post a link here if you want me to have a look.

  • Yeah, skip the behaviour and control your camera with events. Use every tick as the condition, then "System -> Scroll To position" actions allows you to set the exact point for the scrolling, and if you use the lerp expression for this as well, you'll get smooth scrolling. (if needed of course)

    Then you just set it to scroll to Player.Y - Offsetamount.

    Or for smooth:

    lerp(ScrollX, Player.X, dt*scrollSpeed)

    lerp(ScrollY, Player.Y - offset, dt*scrollSpeed)

  • No problem.

    It's a common problem people not finding the beta releases, hence my signature, used to be worse before the site re-design. <img src="smileys/smiley36.gif" border="0" align="middle" />

    Anyway, did you sort out all your problems? I'd be happy to help if there's anything else.

  • Sure thing, it's a bit hard to explain so I'm just gonna redirect you to this handy tutorial.

    If you have any problems, feel free to ask and I'll put together an example for you or something.

  • I assume this is top-down and you're moving along the X axis.

    Make a variable "position" and a variable "speed", on start of layout set the "position" variable to the players X position, set the speed to 1 in the beginning. On left or right click, add or subtract 160 to/from the position variable. Then every tick set player position to:

    lerp(Self.X, position, dt*speed)

    If you need help understanding lerp (linear interpolation) I recommend the links in the FAQ in this subforum.

  • Whiteclaws

    Well, his character IS falling in the gif, so it should work. And he probably doesn't want you to be able to kill the enemy at the start of a jump (on the way up).

  • You can use beta versions without buying a license, however I'm afraid you'll need a license to use families, which is what you'll need to do the "Generic sprite touched" thing. Add all objects to a family, then make an event based off that family.

    As a workaround to families, you can use one object with different animations (if they are not animated you can simply use frames in the same animation). This way you can make events for the object, then separate them based off which animation/frame they have.

    Edit: I recommend downloading release 134 (even if you don't care about the capx I posted), apparently 135 has some issues with alt+tabbing. To save time looking for the release page, click the link in my signature.

  • Hmm, looks fine to me. Any chance of uploading your file to dropbox and post a link here so I can have a look?

  • There are ways to do everything you have described in this thread, but you need to understand; This is not programming in a traditional sense. Though if you understand how to use C2, your programming skills will come in very handy.

    On to the questions: Setting a value depending on which button is pressed is pretty simple. Many ways to do it, but I would recommend using an instance variable:

    ButtonsSimple.capx (r134)

    As for your other questions, I'm unsure what you mean by "trigger", a button, an action, an event, a condition? All these could be described as triggers, but I haven't used that term, so I'm unsure what you mean by it. And in the last post there's too much back and forth in your explanation, I have no idea what you're looking for.

    By the way, have you read the Beginner's Guide? Even if you don't feel like a beginner because of your programming experience, it's important to understand how C2 operates. You can do almost anything in C2, but the approach is often different compared to programming from scratch.

  • Happy to help. A setup similar to this should do the trick for you I believe:

    PlatformMirror.capx (r134)

Nimtrix's avatar

Nimtrix

Member since 30 Dec, 2011

None one is following Nimtrix yet!

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies