sgn15's Forum Posts

  • anyone help?

  • anyone help?

  • So I have different heights of floors (like stairs) and when I punch enemy, enemy is supposed to be moving backwards by a set speed for a second's duration. Problem is, when the enemy (while moving backwards after being punched) is overlapping a solid (floor object), the enemy "teleports" to another place.

    I understand why it happens. Platform-behavior characters can't overlap solid objects.

    I want to ask what is a possible way to prevent this? Thanks.

  • So my game is a platformer and I would like some characters to be angled according to angle of the floor they are stepping on (floor object with solid behavior)

    How do I do this? I only need the action (formula for angle), not anymore the condition.

    Thanks.

  • any help here?

  • How do I make 2 objects with sine behavior (or 2 instances of the same object with sine behavior) behave differently?

    Object 1 and Object 2 (or Both instances of the same object) both have these settings:

    wave = sine

    Movement = vertical

    Period = 4

    Magnitude = 100

    is it possible to make it that at the time when 1 object/instance is going up, the other object/instance is going down? I need them to behave differently but with same parameter values

  • zenox98

    Ok. So I tried both the cropping and resizing options in the image editor. It seems what you got from Ashley was exactly correct, as resizing or cropping to even just a pixel bigger (2047 x 476) would result to a "distorted" preview in layout view.

    So now that I have confirmed it, I would like to ask if this means it is just my computer (with current graphics card) that has this issue? If I upgrade/buy relatively better graphics card OR if I use another computer with a better graphics card, I would stop having this problem? I'm asking this because you mentioned graphics card. Or will this issue be changed in future versions of C2? Or what other solutions I can do (aside from what I mentioned before) ?

    I would really really like to avoid the method I thought of for solving this (cloning objects, duplicating animations and cropping each half for each object) because it would result to a hell lot bigger size. I have this problem for many background sprites.

    Edit:

    another problem

    http://oi62.tinypic.com/pmw5l.jpg

    The blue boxes' original image is just solid blue square. Why does it have those transparent spots in layout view? also due to graphics card? I used the blue object as ceiling/floor/wall because it has solid behavior. Even if I don't set their initial visibility to invisible (thru events or properties), those transparent spots don't show up in preview. They only show up in layout view.

  • Use "System - trigger once while true"

  • zenox98

    Well, I can't resize it. It would look distorted (pixels).

    So the best solution is to clone it (so it would result in 2 different objects) and crop them (1st object has 1st half of the image and 2nd object has 2nd half of the image) ?

    Ashley

    any thoughts on this?

  • http://oi57.tinypic.com/axi96o.jpg

    As you can see, the original size of the picture is the bounding box selection. But it is resized (only visually), but not actually resized.

    When I run the layout, that same sprite is NOT VISIBLE and becomes SOLID BLACK (just the same size as the original sprite but solid black).

    How do I fix this?http://oi57.tinypic.com/axi96o.jpg

    The size of the sprite with the issue in the screenshot is 3498, 476.

    As you can see, the original size of the picture is the bounding box selection. But it is resized (only visually), but not actually resized.

    When I run the layout, that same sprite is NOT VISIBLE. It's as if the sprite wasn't there at all.

    I have NO EVENTS involving the sprite. It is just a background. I use other objects as floor, ceiling, walls (all with solid behavior).

    I already tried updating my graphics card driver and also clicking the "Make 1:1" size also doesn't work (since well, it is already 1:1 just not 1:1 visually in Layout View).

    I have other sprites (also as big in size as that in the picture or even bigger) having the same issue. Is this because of the size of the sprite?

    How do I fix this?

  • you can set them to be disabled or enabled using events

  • Try Construct 3

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

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

    I tried searching and reading about webgl.

    http://get.webgl.org/

    I can see the spinning cube.

    The replace color works in preview in chrome browser but when I preview in node webkit, all webgl effects don't work?

  • Aphrodite

    So if I understood you correctly, even if I made the replace color to work on my computer, if I release my game (in exe format), the other people playing my game may not necessarily see the replace color work in their computers?

  • ?

  • So I tried exporting to node webkit, the replace colors are not happening.

    How can I make the "replace color" work in node webkit?

    also, when I was exporting, it said it can't use "script minifier" ? I don't know what that is.