Animmaniac's Forum Posts

  • You can make it in C2, just instead of using a fixed angle joint set the box property "prevent rotation" to yes.

    You can then apply a torque to the wheel or a force to box, or even both.

    example

  • I think what he means is an easy way for the player reassign a key during runtime, so you don't need to make an event for every key of the keyboard when the user wants to change it.

    Maybe something like:

    On any key pressed

    set variable.leftKey to (last key pressed)

    On key (variable.leftKey) pressed

    move player to the left

  • What you are describing seems like functions.

    There is already a function plugin for C2, I used it a lot in my entry for the competition. It's not an official C2 plugin yet, but it works quite well. I suggest you give it a try and see if it's what you're looking for.

  • Title: Can't turn it off

    Play it here

    Brazil

    I didn't had enough time to finish.

    I was working in the C2 start page last week, so I only worked less than a week on it.

    I will try to finish it later.

    Edit: Strange, it is in a public folder. I uploaded to my ftp so I guess is working now.

    Also forgot the controls:

    WASD or Directional - move

    Left Click - interact/hide dialog

    Space - skip intro

  • How to add a line break for strings like text variables and text objects in the layout editor?

    It seems that the more standard "ctrl+return" or "shift+return" doesn't work.

    It's being really annoying resort to events to make a simple multi-line text.

  • That's great!

    Reusing the same topic:

    I'm needing to play an animation in reverse during runtime, so I tried to set the animation speed to a negative value through events. However, this just makes the animation get a boost instead of going backwards. It seems this is not an intended functionality.

    Is it possible to implement this feature?

    It would save valuable resources if I could do that instead of having to double my animations just to reverse the order of the same frames.

  • C2 r63; Windows 7 32 bit; FireFox 7.01; GeForce 9400 GT

    Core 2 Duo E8400 3.00 GHz; 3,00 GB RAM

    When an sprite is set to auto mirror, its image points doesn't mirror along with the animation.

    dl.dropbox.com/u/7871870/construct/c2-bug-test-02.capx[/url]

  • C2 r61; Windows 7 32 bit; FireFox 7.0; GeForce 9400 GT

    Core 2 Duo E8400 3.00 GHz; 3,00 GB RAM

    First:

    • created 2 animations
    • imported PNG frames
    • created events

    Resulting in this capx:

    http://dl.dropbox.com/u/7871870/construct/c2-bug-test-01.capx

    If you run the preview and press 'Spacebar' everything happens as expected: the animation "hit" is played and when finished restored to "Default".

    Then:

    • close the preview
    • open the Sprite in the picture editor
    • for each animation of Sprite hold 'Shift' and click 'crop' to crop all frames

    If you run the preview again, every time 'Spacebar' is pressed the sprite is stretched horizontally when the animation change.

    This is what was expected:

    <img src="http://dl.dropbox.com/u/7871870/construct/bug-01-01.jpg" border="0">

    This is what I get after pressing 'Spacebar' a few times:

    <img src="http://dl.dropbox.com/u/7871870/construct/bug-01-02.jpg" border="0">

    If I continue to press 'Spacebar' the Sprite stretches to infinite.

  • I always think in families like tags or classes that you can give to objects to "group" and reference them in events. In reality is something more complex than that, but in essence it's really close.

    On the other hand Containers in CC are something more related to the concept of "parenting" than "grouping", because an object can only be contained by another object that already exists. In "grouping" a collective of objects create a new entity that is a group.

    In this sense I think Families are more related to grouping than Containers. Although in CC both only "group" objects in the runtime not in the "edit-time".

    Would be a great addition to C2 if you could group objects in the layout editor as well. If you ever used a vector editor you will understand how useful this would be to Construct in helping manage layout content, and extending this concept with the ability to reference and manipulate them through events would make it a very powerful feature.

    I really expect that the families/containers/groups/classes/tags (or whatever you prefer to call it) be well thought with a lot of care and respect for C2, since they perform a fundamental role and yet have very similar concepts and overlapping functionality.

  • I was thinking just 'C' for 'center'? There's no obvious arrow to press for centering.Hmm, I totally forgot about center and corners. With arrows is possible to combine them to get corners but the center is missing then. With "C" as center I woud expect "T", "B", "R", "L" also, but I don't know about the corners then. Maybe the keyboard part around the WASD (QWE ASD ZXC)? But I think the keyboard layout can change depending on language, so I don't know...

  • I'll add an alternate shortcut for the next build.How about Ctrl or Shift + arrows" ?

  • Woah! Is it okey with you Animmaniac if I use this method in my game/s?Yes it's ok, you can use it freely. If you came up with an optimized solution I would be happy if you share it here on the forums.

  • I took the challenge of adding occlusion to my example and came up with two different approaches: one uses raytrace and the other is similar to minecraft's method through propagation.

    http://dl.dropbox.com/u/7871870/construct/tile-light-raytrace-01.cap

    http://dl.dropbox.com/u/7871870/construct/tile-light-minecraft-01.cap

    They are not very fast, specially the raytrace that could be a little more optimized.

    The second method propagates the light every frame like if "calculating on the fly", so it doesn't look very good for moving lights. I tried to make it update instantaneously but it became to slow. I recommend using it for static illumination mainly.

    Actually both can work better for static lights. They can be executed just once at the start of a layout (during a loading screen for example) just to set the illumination resulting in a better performance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I made an example based on Tokinson cap:

    http://dl.dropbox.com/u/7871870/construct/tile-light-01.cap

  • -First it would be nice if the starting position of the window in the layout (dashed rectangle) could be dragged somehow and also set through Layout Properties.

    -"Undo" is listed two times in the shortcuts window, and "Current Keys" for "Undo" and "Redo" are not shown.

    <img src="http://dl.dropbox.com/u/7871870/construct/interface-02.jpg" border="0" />

    This successive layers of windows to edit the shortcuts are a little bizarre. Also if I set the shortcut "Ctrl+Shift+Z" to Redo and try to use it C2 crashes.

    -The "Customize Quick Access Toolbar" should be achievable through the "Preferences" button, since it is the most expectable place to be found. Actually everything could be grouped into one "Preferences" window with tabs, like so:

    <img src="http://dl.dropbox.com/u/7871870/construct/interface-01.jpg" border="0" />