cacotigon's Forum Posts

  • okay, thanks, that clears it up for me. I see what you're saying Kyatric, organizing events which pertain to a object through that object's conditions in the event sheet helps with readability/maintainability. Thanks Ashley about trying to use less System events.

    Back to coding!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks! That's good to know about rotations. I'm so worried about performance that rather than doing opacity/transparency/etc in real-time for example for particle type effects, I was considering just creating individual frames in Paint Shop Pro using various effect filters and exporting as a tile-set. :)

  • I've got some enemy sprites which are moving around by using Platform behavior and simulating the left and right key presses.

    However, I realized in the event editor I can use either:

    On System.Tick

    if(Zombie instance var 'facing' = "left") simulate keypress left

    if(Zombie instance var 'facing' = "right") simulate keypress right

    or I can simply do a 'Compare instance variable' event:

    On (Zombie instance var 'facing' = "left") simulate keypress left

    On (Zombie instance var 'facing' = "right") simulate keypress right

    Can anyone outline the difference between these from a performance perspective? Which one would you recommend?

    Thanks,

    -- cacotigon

  • Awesome! This is a really excellent program to tinker around with. After spending a few hours with it, I've already been able to mock up some simple platformer gameplay. In fact, so far, the majority of my time goes into using Paint Shop Pro and hand-editing my animated sprites to make sure that the walking/movement animations are smooth. I was experimenting with adding some enemies and I thought, why not set them to Platform behavior and use Simulate control events and invisible information sprites to trigger certain things within the level such as boundaries, etc. Works SOOOO WELL. I've got a pretty aged computer, and the framerate is actually not half-bad, which is amazing for a web app (Of course I'm not doing any rotations or anything fancy at the moment, so that could change).) though I also can't wait for other types of output such as standard windows executables.

    also thanks for the heads up about the early adopter license!

  • How could I go about writing an event that queries whether object_A has collided with *any* object that contains a certain instance variable that is equal to a particular value?

    The only way I can think of right now is to write a bunch of individual events each one comparing against a specific type of object (which would result in a massive event comparison) and than doing a sub-event condition querying for the variable value.

    Is there another way to do this? I couldn't find a global "parent" object class. Is this something that I could only do with the premium version which supports 'Families'?

    Thanks,

    cacotigon

  • Huzzah, thanks linkman2004, that did it. I guess I didn't expect a object's property comparison to be in the System event list.

    Ashley: <abashed look> hehe. yeah, I went through the platform tutorial, but I haven't finished watching the rest of them. Apparently, I should!

    DevS: This is really an amazingly cool dev kit, thanks very much for creating it!!!

    Thanks,

    -- cacotigon

  • Okay, I've been racking my head trying to figure this out.

    I want to create a compare event that tests the speed, particularly the x-component of the current velocity, of a Sprite object. However, the closest expression I found was under the Platform Tab (Is moving), which doesn't let me check the actual value.

    There is an event for comparing a private variable, and if you click on that, it shows some icons of the various sprites. If I click on that one, it shows the following fields:

    Private variable

    Comparison

    Value

    And than below all that, it shows some icons of the various sprites in my project. If I double-click on the sprite in question, it brings up a window called Construct : New expression, and if you look under the Platform tab of that window, it has a much more expansive list(I'm not going to list them all), but here

    are some:

    Get air deceleration rate

    Get jump strength

    Get gravity

    Get angle of motion

    **** Get X component of motion <---- I think I want this one.

    etc.

    I noticed that they all start with 'get', so I'm not quite sure if those are what I'm looking for. Unfortunately, clicking on one of these fields and than clicking on 'Next' just returns me to the Compare a private variable New condition window and doesn't seem to do anything.

    Please help, am I missing something here?

    Thanks,

    • cacotigon