Scoremonger's Recent Forum Activity

  • Love your art style - the player's character blending into the background so invisibly is so cool. It's super-inspiring and motivating to see these kinds of projects being built with Construct!

  • You might also look into the Anchor behavior as it was made to assist with problems just like this one. Docs here:

    construct.net/make-games/manuals/construct-3/behavior-reference/anchor

    It sounds like you already have a good solution, but Anchor may prove useful for you at some point.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, exactly - I want some kind of idiot-proof drop down allowing me to populate variable values in the object properties using constants I've defined. I think in Unity such drop-downs are accomplished with enums, for example, but it's been awhile.

    I can see how your suggestion for setting variables using event sheet logic works for objects that all need to be initialized the same way - I am actually doing that in one case. But I'm referring to a bunch of object instances of the same type that need to be initialized with different values at design time. Another hypothetical example that's hopefully clearer:

    I have a bunch of doors in a building layout, and I want some of them to start locked, others to be open, others to be closed, and they are all based on a single "Door" object. I implement their open/locked/closed states by giving the Door object a string variable called "State", and using "open", "locked", "closed" strings as my state values. In my layout I then select the doors one by one and type whatever state I want into each of them. If I could set those variables using string constants (instead of repeatedly hand-typing them), they'd be less error-prone and easier to rename/refactor later on. Basically the exact same reason constants are used in event sheets, but applied to object properties at design time.

    Anyway this is a pipe dream for now, unless there's a really elegant workaround I'm overlooking.

  • Thanks for the suggestion dop2000, but I'm looking for a way to initialize instances of the same object with arbitrary values on an instance-by-instance basis, which can really only be done by setting their properties directly. I think it's time for me to write up a feature request!

  • klkev I'd add to what said that C3 is just all-around easier to use. At a glance the two are very similar, but there are so many small improvements throughout C3 that they add up to a much smoother workflow. Plus any new major features like the timeline tool will only be coming to C3.

  • Hi all, I'd like to use a constant to set a variable's value at design time. For example, say I have a bunch of state names, like:

    STATE_IDLE = "idle"

    STATE_RUN = "run"

    STATE_BADLY_NAMED = "fred"

    and in my character objects I have a variable called "State" that I want to set to one of these at design time. Currently I have to manually enter the State strings into the object properties by typing them in - I can't use the constant. So if I decide to change my constant for STATE_BADLY_NAMED from "fred" to "asdf", I have to remember to go through my objects and manually change all the "fred"s to "asdf"s in their properties too, which makes for errors. I also don't know a way to search through all object properties for a string inside the editor. It can be done in Windows, but it's a bit of a hassle.

    Does anyone know a trick to use constants in object properties, or a way to search object properties for a string from inside Construct?

    Thanks!

  • NetOne Thank you, those were many of my thoughts as well - this mostly sounds like an organization issue to me. But with any luck the needed documentation will be made available so the author can port his plugin to the new runtime for those who want to use it. Perhaps an appeal to Scirra to get that documentation would be an easier path than trying to have this officially added to the editor. Improved documentation helps the whole community and doesn't leave Scirra with another plugin to test and support.

  • I'd like to have a plugin that automatically rewrites forum posts to be polite and respectful. I could have used that myself a few times.

  • you dont need to use include event sheet to call functions from other sheets o_o

    If you haven't included the event sheet containing the function you're calling, it won't work. So if I have declared a function called "TEST" in "Event Sheet 2", and in Event Sheet 1 I try to call TEST, it will not work unless I've also included Event Sheet 2 in Event Sheet 1.

    That said, I have no idea how or why this suggestion could have gotten 106 votes in just a few days (and most of those votes are coming from egg accounts which makes me suspect foul play, haha). I wouldn't complain if that many people really want this feature and Scirra thinks it's a good idea or easy to implement. I personally have yet to encounter a case in my own projects where I needed this sort of thing, but I suppose it comes down to how people want to organize their event sheets and name their functions.

    I just keep thinking I"d rather have that effort go into a scene graph, animation timeline, and event sheet-authored behaviors that we can share between projects. Those are things that would be widely useful and I find myself wishing for them on every single project.

  • You already have a thread going on this, why start another?

  • Thank you so much for this. I haven't yet attempted to set it up, but it sounds perfect. Awhile back I set up a local WAMP https server and hated every minute of getting that thing configured. It eventually worked, but since then I've needed to uninstall it, and because I didn't have any pressing need for a custom C3 plugin, I put aside even tinkering with them because the https server setup was so annoying. This inspires me to give it another try, thank you.

  • I notice in that tutorial there is nothing that tells the monster which detector to use, so I guess what's happening is the logic sees that a detector is failing to collide with the ground, and then issues a command to turn around to ALL monsters. The tutorial seems to assume you only ever have one monster and one detector, but since I didn't try building it myself I might be mistaken about something here.

    You could try using a Container to automatically spawn the monster and a detector at the same time. That way each monster instance will have its own detector instance. It should be easy to try out, and might just work without further changes to your events. If you haven't used containers before, they are explained in the manual here:

    https://www.construct.net/make-games/ma ... containers

    There are some tutorials out there for them too, I'm sure. Good luck!

Scoremonger's avatar

Scoremonger

Early Adopter

Member since 10 Feb, 2014

Twitter
Scoremonger has 3 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

15/44
How to earn trophies