DiegoM's Recent Forum Activity

  • It looks like the line in which you are doing

    const storageRef = firebase.storage(app).ref();

    should instead be

    const storageRef = getStorage(app);

    The getStorage object is imported at the top of the script already.

    I looked at this documentation to figure that out.

  • From looking at their getting started guide it seems that once Metamask is installed in the browser, any new tab should have access to a window.ethereum object.

    You should be able to access that object from a C3 script with out any problems.

  • There is no built in method to do it. If you are willing to write some Javascript you could do it though.

    Your Angular code could add an object to the global scope which could be accessed from a C3 script. This global object should have functions to allow you to send what ever data you want to any given Angular component.

    I can't really go in the details of how to do it, because I'm not familiar with Angular, but I imagine it should be possible.

  • Yes, I think this is an excellent candidate for a suggestion that has very strong chances of actually being implemented. Mainly because it is very easy.

    Shortcuts for changing between animation would also be quite easy to implement, but I am not sure what should they be? Any suggestions?

  • As brainwavecreations says, there is a GUI option to crop all the frames in an animation.

    There is also a keyboard shortcut to do the same ALT + C + SHIFT.

    Currently there is no keyboard shortcut to change between animations.

    Edit: I think the only reason for the absence of the option to crop all the animations in the sprite is that it wasn't an option in Construct 2, so I never even thought about adding it.

  • When you add a child to an instance, Construct does all the calculations needed so the child keeps it's original transformation before attaching.

    Effectively what that means is that upon adding a child, it get's no visible changes. Only changes made to the parent after attaching will affect the child.

    If you mirror the parent after adding the child you will see a change.

  • Set the script's Purpose property to "import for events". you can find it in the Properties bar when you click on the script on the Project bar.

    The object you want to use is called jwt_decode.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here is a sample project overlaying a canvas on top of Construct's main canvas.

    https://www.dropbox.com/s/6lvbkhuq0uoupy3/CanvasOverlay.c3p?dl=0

    There were a few additional things you needed to do so the canvas would show.

    Filling the canvas

    The script that creates the new canvas also fills it with some color so you can see it, it is transparent by default.

    Giving the canvas an ID

    The script also gives the new canvas an ID so it can be targeted with a CSS selector

    Applying some styles

    A stylesheet is added using the Browser plugin. The stylesheet is in the Files folder of the project.

    The styles are very simple but are needed so the canvas is positioned somewhere visible. The main canvas takes up the whole screen and by default new content is appended below existing content so the new canvas was initially off screen.

    The styles I used for this bare bones example just force the canvas to stick to the top right, but you can change that.

  • fedca

    Hopefully in the near future I can get around to working a little bit more in the feature. Out of the features you mentions I left scrubbing out of the initial release because it was not immediately obvious how to implement it and I preferred to get something out to gauge interest and get feedback.

  • hcatarrunas

    Sorry for not responding earlier, I took last week off.

    Resuming timeline playback should resume audio from the position the timeline's playhead is at. The reason it is not working properly is because I didn't take into account that Set time effectively pauses a timeline and later playback could be resumed from a different position than the last it was paused in.

    I also believe there is no way to goto and play a Tag/keyframe of a timeline? (instead of the two steps asking to go and then asking to play)

    I agree this would be a good addition to the actions available to the Timeline plugin.

    I also tried to manually set the audio tag after navigating the timeline but it didn't seem to work. (basically had no audio/it stopped so maybe something wrong)

    The audio tag property that you can set in the editor is only useful to be able to use the Audio plugin's actions and conditions with audio that is played from a timeline. In this particular case it will make no difference if it is set or not.

    Can you share a project that shows how you are trying to use the feature? That will be useful to iron out these issues.

  • dazedangels

    If you login to your Adsense account and go into the "Sites" option in the left hand side menu, there should be a list of all your websites. All of the ones that say that are ready to show ads, should be considered whitelisted.

  • Technically this is something you could already do, by setting a tag on a master keyframe and then going into an event sheet and setting up an on keyframe reached trigger you could then start playing an audio file in the corresponding action using the audio plugin.

    The audio track just rolls all of that together and you can also see in the timeline bar the amount of time the audio will be playing in relation to everything else going on in the same timeline.

    At least that is the main use case I was thinking about when I was implementing the feature.

DiegoM's avatar

DiegoM

Member since 24 Apr, 2015

Twitter
DiegoM has 1,400,770 followers

Trophy Case

  • 9-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies

Blogs