Landermere's Recent Forum Activity

  • I would recommend adding the physics behavior to you player if you want the player to fall off the rock.

    naturally the platform behavior will stop the player if they hit a solid object's collision points.

    I'm not entirely understanding your second question, could you provide some reference material? such as a picture or an object in a game that does something similar?

  • Hello again fellow Nerds!

    Ok so I feel I may have not explained my goal as clearly as possible first time round.

    So here goes for round 2

    I would like to create a save menu that takes a snapshot of the games current state and displays this image in an event.

    I have achieved this thus far. see image : pasteboard.co/1SCJZEhg.png

    My issue comes when I try to reload/refresh the game client.

    The load file is available but the image is not saved, dispite having the sprite be saved along with most other entities/events etc.

    When you load the game up again (or even refresh the browser) the snapshot disappears and so the sprite that shows the snapshot returns to a white sprite. See Image : pasteboard.co/1SCYrbQx.png

    I have tried a couple of things but don't feel I have gotten anywhere close to the desired function of this.

    I am looking for a way to use the snapshot, created when saving, as a way to show the player they have saved even after closing the browser.

    I would love to include the CapX but unfortunately it is not possible.

    If anyone has any Ideas/suggestions however, please feel free to let me know.

    If there is any other information required by yourself then also, let me know

    I will respond ASAP.

    Thanks in advance

    Chris

  • Hello again fellow nerds!

    I have made some real progress on my current games project and by jove it's really taking shape!

    I am here again to ask for your help!

    Todays problem involves the CanvasSnapshot feature.

    Scenario

    I am creating a save feature that allows the player to to see their progress from the previous save.

    Once the game has been saved it creates a CanvasSnapshot and then sets an event to that CanvasSnapshot (see images below)

    pasteboard.co/1PDNrFm0.png - menu after saving (shows current level state)

    pasteboard.co/1PDRjygm.png - menu after closing browser and relaunching game (no image)

    pasteboard.co/1PDUQtfG.png - loading the game after closing browser (Loads the game state correctly but does not show image)

    Edit - pasteboard.co/1PE9bu93.png - event sheet for save and load.

    So my question is: what would be the optimal way to save the CanvasSnapshot and load CanvasSnapshot after the player has closed the browser and re-launches it?

    Thanks in advance <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    Chris

  • blackhornet ooooh I did wonder what that feature actually did!

    I'm going to try that out

    Thanks for the knowledge <3

    stay awesome

    Chris

  • Thanks for replying blackhornet!

    I hadn't thought of doing that however, Unfortunately that didn't work either :/

    I have however figured out a work around but still leaves the question as to why it didn't work.

    Solution to my issue is linked here

    pasteboard.co/1JB2Kvun.png

    Thread can be closed <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

  • Hello there fellow nerds!

    I am trying to run a conditional check within an array to see if a number contained is one of two values.

    I know that | is the "Or" symbol and so by checking if array = 1 | 5, this should see if the value is either 1 or 5.

    This does not seem to work and is yielding unwanted results.

    pasteboard.co/1JpLXlsg.png

    Expressions I have tried:

    if Stance_Array = (1)|(5) play animation

    if Stance_Array = 1|5 play animation

    if Stance_Array = (1|5) play animation

    if Stance_Array = ((1)|(5)) play animation

    I'm not sure If I'm misunderstanding expressions but...Help please

    Thanks in advance <3

    Chris

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • well I never...

    I was playing around with the program and ended up fixing it.

    here's a link to the completed program <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    pasteboard.co/1EdPQKgo.png

    I might put together a tutorial for this at some point too hehe

    Thanks for your assistance guy/gals! <3

  • Thanks for the replies guys/gals

    gum I want to optimise the performance of the game so while that method is easily implemented and pretty much guaranteed to work, I don't think it would be optimal to have the event there. I want to have 1 box of code that does all of the work rather then having unnecessary events that will slow down the game.

    MaGi the viewports only work for the viewport right and left for some reason =/

  • I see

    All of the User interface events are set on their own layer above the game layer, it has a 0, 0 parallax setting.

    The UI events should not be moved beyond the boundaries of the screen.

    In order to define the "boundaries of the screen" I have to compare the events in the screenshot above.

    Once the player has moved the User Interface events outside of the "boundaries of the screen", the user interface does successfully snap to the "boundaries of the screen". This only works while within the default window size and when this is no longer true the user interface events snap to the left/right side of the screen or moves as if paralaxed.

    The goal is simple. create a user interface that can be dragged within the boundries of the screen,

    once released from the dragdrop behaviours, it will stay there regardless of where the player is within the level.

    I'm not really sure what else I can convey :/

    Thanks for respondingGumshoe2029

  • Hello there fellow nerds!

    I am currently creating a Moveable user interface that allows the player to...well....move the interface.

    I have currently got to a state where I have pinned events onto the frame and have a lock mechanism that enabled/disables the frame from being moved.

    This frame can be dragged (if unlocked) anywhere on the screen however, when I move the playable character outside of the standard window size area (854, 480), The user interface moves as if paralexed incorrectly and snaps to the extreme side of the screen, however this is not the case as the layer has a 0, 0 paralex.

    Below is a screenshot for the events I have just to show you I am not crazy hehe.

    pasteboard.co/1BWOpfJm.png

    Another point to add is that I have only been able to use the left/right viewport along with original windowheight as the other options were not valid.

    Thanks in advance to anyone that is willing to lend a hand on this matter!

    I look forward to receiving help

    Stay awesome.

    Chris

Landermere's avatar

Landermere

Member since 17 Feb, 2016

None one is following Landermere yet!

Trophy Case

  • 8-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies