skymen's Recent Forum Activity

  • Hi. I'm making an 'options' menu for my game. And I would like to turn off the WebGL completely as the 'Fastest' graphic mode.

    So, is there a way to toggle WebGL in game?

  • Yes, something like this : (add https)://www.scirra.com/forum/request-directional-blur_t122854

  • You can also use the pulse WebGL effect I think

  • Mmh, I managed to get a motion blur to work, however this was absolutely not what I expected...

    I expected to get something like that: (https)://www.scirra.com/forum/request-directional-blur_t122854

    Or at least like that: (https)://youtu.be/Siud1xP8Veg

  • Asmodean Ah. Well that's a huge mistake I made!

    Thank you mate x)

    EDIT: Sooooo... I don't have a single chuking idea of how to translate this into OpenGL Shading Language. Can someone help me here?

  • What should I put in its place?

    I've seen many tutorials like this one: (add in http)://www.w3schools.com/js/js_functions.asp

    They all use 'function'.

    Also, for the setTimeout() call, it doesn"t give me any error, and I've seen it here:

    (add in http)://stackoverflow.com/questions/14226803/javascript-wait-5-seconds-before-executing-next-line

  • Hi, I'm currently trying to make a fast motion blur effect for my game

    Here is the fx's file code:

    //////////////////////////////////////////////////////////////////////////
    // Motion Blur effect
    varying mediump vec2 vTex;
    uniform mediump sampler2D samplerFront;
    uniform mediump float quality;
    uniform mediump float seconds;
    
    function scrUpdater() {
    		mediump vec4 front = texture2D(samplerFront, vTex);
            gl_FragColor = front + oldfront*quality/100 ;
        }
    
    void main(void)
    {
    	if (seconds == 0){
    		mediump vec4 front = texture2D(samplerFront, vTex);
            gl_FragColor = front;
    	}
    	else {
    		mediump vec4 oldfront = texture2D(samplerFront, vTex);
    		setTimeout(scrUpdater(), 10);
    	}
    }
    
    [/code:q701en8b]
    
    When I use it in Construct 2, I get this error:
    
    [img="http://image.noelshack.com/fichiers/2015/52/1450886713-javascript-error.png"]
    
    Can someone help me?
  • Hey, as no one made a motion blur effect for construct, I'm trying to do it on my own.

    Anyway, I'm new to javascript, so I got a few questions.

    I've made some researches on how the effect should work, and I found that what the effect does is:

    1- Copies the canvas (or whatever name you call it, the part of the game that is currently displayed on screen)

    2- Adds to it some blurry effect

    3- After 1 frame, blends it to the current canvas

    4- Go back to step one.

    So, I know how to blend images.

    I kinda know how to add that blurry effect.

    But, the whole problem is that I neither know how to "copy" the canvas nor how to "wait" 1 frame

    Could some awesome javascripter help me with this one? ^^

  • Hi. I would like to create a motion blur effect in construct 2 as there is no one ever made (if there is one, could you give me it's link?).

    So my question is, how do I create an effect for construct 2?

    Is there any tutorial that could help me?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This has already been made in a lybrary before: (add in https)://www.clicktorelease.com/tmp/threejs/mblur/

    Using three.js, can't someone port it to construct 2?

  • Yes.

    Go to file>New>Example:Lightning

  • What do you mean by "follow the scroll"?

    If you mean that your character should continue heading right, I recommand you to look at the built-in runner template.

skymen's avatar

skymen

Member since 3 Aug, 2015

Twitter
skymen has 100 followers

Connect with skymen

Trophy Case

  • 9-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • x34
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x7
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x2
    Lightning Draw First person to up-vote a new Construct 3 release
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

22/44
How to earn trophies

Blogs

  • Skymen

    Sometimes I do some cool stuff in Construct. Sometimes I like to talk about it.