XManBG's Forum Posts

  • Sorry, that I'm answering so late.

    You don't need a Reset (i.e. the sinx) for your task. You just need one full sine cycle like from 0.25 through 0.99...0 and back to 0.24. Sine never reaches the value 1 for its CyclePosition. I've tried with 0.99 as stopping condition and it works with it, but no more with 0.999. Anyway, here is an example of what you need to use the standard sine function: CAPX with the normal C2 sine function

    Other links:

    No more Sine 1.1: New CAPX of the old example with the sinx "plug-in" now

    SineExtended plug-in: sinx.zip

  • Ahm, this CAPX was made before I decided to repack the Sine with RESET as Sine Extended (to be found in this same thread LINK). Previously I just had changed the original Scirra Sine version to 1.1 in order to not mix up with the original version 1.0. It was not a clean solution because it was always overwritten by every new C2 update.

  • I've used the Canvas plugin and haven't experienced any crashes.

    Have you tried using another computer?

    Yeh, you are somehow right... on another computer the same page worked without memory overflow. Obviously the problem is with my graphic driver, or generally with my old and overwhelmed WinXP installation.

  • Oh no, what do you mean this is by design?! <img src="smileys/smiley19.gif" border="0" align="middle" />

    As far as I can read - 'Set position to another object' should move my second object to the first Object's origin - nothing else, nothing more. It does NOT function as expected, and it appears to be actually useless, if the Layout Scale or Layer Scale are touched?!

  • Ashley, I'm not sure, I have understood your point. I've tried the same Action list on a Mouse Left click event. I perform the click after a while, definitely after the page has fully loaded and initialized - same result: the sprite disappears. Try it your self: On left Mouse click - Anchor disabled and Set X to ViewportLeft. Right Mouse click - just Anchor enabled - Sprite disappears.

    CAPX

    dropbox.com/s/9qae0dnezi4emr8/anchorBug_by_mouseEvent.capx

  • Actually there is the same problem with using the first Object's coordinates X and Y. They are pointing to the initial Object's position as it was at Layout Scale 1.0 and not to its actual position after Layout Scale change.

  • Link to .capx file (required!):

    CAPX

    dropbox.com/s/sujlgfdrrmmv1iv/objectPositionBug.capx

    Steps to reproduce:

    1. Create second layer with scale 0

    2. Create two Sprites - one in the first layer, one in the second

    3. Change the Layout Scale to something different than 1.0: the object in the first layer with Scale 100% moves around, the second object in the 0% layer stays in place - just fine as expected.

    4. Set Sprite2 position to object Sprite1 (image point 0) - hm, it appears that C2 is trying to align both objects in their Layout Scale 1.0 positions and disregards the changed Layout Scale.

    Observed result:

    The Layout Scale change is disregarded. The second object is not aligned to the actual image point of the first object, but to its initial position as it was at Scale 1.0.

    Expected result:

    Both objects should be aligned at different Scale ratios to their chosen image points as it happens at Scale 1.0.

    Browsers affected:

    Browser independent - C2 issue

    Operating system & service pack:

    WinXP SP3

    Construct 2 version:

    R136

  • Thanks for you reply Ashley. I've tested it within the last release from today - R136. It's a pity, but Anchor is still not working as expected. Just load and try my first CAPX.

    On Set Anchor disabled, Set X to ViewportLeft and Set Anchor enabled, the Sprite disappears in Chrome and FF, regardless where the Origin is positioned.

    On Set Anchor disabled, Set X to e.g. 400 and Set Anchor enabled, it moves the Sprite by default to Layout (not Viewport) top-left position.

    I think among the Anchor properties should be added the option to set Left edge and Top edge to 'Reference' (or Right edge, or Bottom edge too) in order for the Anchor to maintain the actual object position only, without moving it to Window top-left again.

  • Link to .capx file (required!):

    CAPX

    dropbox.com/s/h8oijg42hqgz8bt/anchorBug.capx

    Steps to reproduce:

    0. Set the Fullscreen in browser to Crop mode

    1. Create Sprite

    2. Add an Anchor behavior

    3. Try it in the browser - the sprite is not moved

    4. Use the Sprite Set X position to ViewportLeft

    5. With Anchor disabled, the Sprite moves to the Left, of course without anchoring capability

    6. Anchor enabled added - Sprite moves back to its initial position

    Observed result:

    The Sprite is not anchored to the top-left but at its initial position, even if I change the origin. The Sprite position change is not respected during anchor disabled - on anchor enabled, the sprite is moved back to its initial position.

    Expected result:

    Sprite 'sticks' to the browser left window side

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: NA

    Operating system & service pack:

    WinXP SP3

    Construct 2 version:

    R132

  • :) That was a quick answer. Thanks.

    The anchor behavior takes the whole sprite and 'sticks' it to the browser edge, without a possibility to control ... but what if I want e.g. to make the menu sliding show/hide on mouse over, I have to disable/and re-enable the anchor behavior?? As long as the anchor behavior is enabled again, the menu-sprite sticks again in full size to the browser edge - it 'looses' its shown/hidden status.

  • Hello fellows,

    I'm trying to build up a menu in C2, which sticks to the browser left side. This should be like the common web pages, where whatever browser windows size people use, the menu is always in its correct position on the left. And more - if someone decides to maximize the window in Windows, the menu should remain on the left side, and not in its old position.

    Until now, I couldn't find a possibility to do the task. I'm using 'Full screen in browser' the 'Crop' option in order to make the view port borderless and not changing or scaling while browser window re-size.

    Thanks for your ideas in advance!

  • Yes, I'm using C2 and working on a server. My pictures are located relatively to the project folder. My point is about an option in C2 to Create new animation frames from the event sheet. Because for now, I have to pre-create the needed animation frames and then fill them with the "Load image from URL" event. This is of course possible for small projects with known and limited number of frames, but not for a bit bigger game project, where I still have to manually change and reload all the Sprites.

    EDIT: <img src="smileys/smiley36.gif" border="0" align="middle" /> I see now, that I've landed in the Construct Classic part of the forum... it's a bit confusing with the search option of the forum, which delivers both, mixed results for C2 and Construct Classic.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • OK Ashley, thanks for your response. My expectation was based on the common way the Create Sprite works: once the properties of the Sprite are set, every new instance inherit them.

    Anyway I could think of a way around by saving the re-sized first Sprite height and width and re-setting them for every next creation.

  • Link to .capx file (required!):

    Link to CAPX

    Link to HTML5 example

    Steps to reproduce:

    1. Create new object - Empty Sprite

    2. Use Load image from URL to load i.e. smaller or bigger image than the created one - my example is with 94x94 px image. Set the Size property to Resize to image size.

    3. Use the system event to create a new instance of the same sprite object.

    4. The new object has the initial size and not the adapted one from the Load image from URL event.

    Observed result:

    The initial Sprite object is re-sized to image - as expected, but the new one becomes the original sprite size.

    Link to HTML5 example

    Expected result:

    Both Sprites should be the same size.

    Browsers affected:

    Independent from browser - it is C2 alone

    Operating system & service pack:

    WinXP SP3

    Construct 2 version:

    Stable release R132

  • +1

    I could imagine to use the Load image from URL along with Animation Frames of a Sprite Object. Just need an additional C2 Action implemented - Create new Animation Frame, wherein I would load my next image for the set. The new frame could just appear as last in the active animation set of the Sprite Object.