Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    New to Fuse4-want a Faery Tale Adventure like game

    General Discussion
    17
    186
    25254
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tdg8934
      tdg8934 @vinicity last edited by

      @vinicity great find! That makes sense now about Jade being a keyword colour. I should have made it Skull instead of Jade but not going back now...

      Thanks again for explaining the mystery

      Tim

      1 Reply Last reply Reply Quote 2
      • tdg8934
        tdg8934 @xevdev last edited by

        @xevdev changing the g_buffer=createimage(1920,1080,false,image_rgba)

        To

        g_buffer=createimage(1920,1080,false,image_rgb)

        Fixed the issue of smearing ! Looks normal again.

        Great find!

        I should’ve have realized all my other CreateImage statements had just the ‘image_rgb’ and not the ‘image_rgba’

        1 Reply Last reply Reply Quote 2
        • tdg8934
          tdg8934 @xevdev last edited by tdg8934

          @xevdev how did you create the videos from your switch? I usually just use my iPhone on my 65” tv but I see others are making videos. Does the switch have some recording capability?

          1 Reply Last reply Reply Quote 1
          • PickleCatStars
            PickleCatStars F last edited by

            You hold the switch screenshot button down. It’s the one opposite ’home’.

            1 Reply Last reply Reply Quote 2
            • pianofire
              pianofire Fuze Team last edited by

              If you hold down the button below the left cursor keys it saves the last 30 seconds of activity as a video clip which appears in the Switches Album folder. You can then post that clip to a Twitter account.

              1 Reply Last reply Reply Quote 2
              • xevdev
                xevdev F last edited by

                It's linked to my twitter account. So I just hold the button below the d-pad and it will record the last 30 seconds of the switches output to the screen. You can access this by pressing the home button and going into the blue icon next to the shopping icon.
                If you have a twitter account then you can post it to it.
                To paste the video just go to the video and copy it's link and paste into the fuze arena thing I'm using now.

                tdg8934 1 Reply Last reply Reply Quote 1
                • tdg8934
                  tdg8934 @xevdev last edited by tdg8934

                  @xevdev https://www.facebook.com/100009752675773/posts/1235553130113098/?extid=MfbjDuWBlHOAkRcE&d=n

                  I was able to share it to my Facebook account!

                  tdg8934 1 Reply Last reply Reply Quote 0
                  • tdg8934
                    tdg8934 @tdg8934 last edited by

                    I created a Twitter account. It took much longer to process the posting to Twitter than it did Facebook

                    Jongjungbu 1 Reply Last reply Reply Quote 6
                    • Jongjungbu
                      Jongjungbu F @tdg8934 last edited by

                      @tdg8934 It fluctuates. I've had Twitter videos post instantly sometimes as if it didn't even need to upload, and other times it took a while. Same for Facebook. It really varies.

                      1 Reply Last reply Reply Quote 1
                      • xevdev
                        xevdev F last edited by

                        I can see this one though. Good stuff.

                        tdg8934 1 Reply Last reply Reply Quote 1
                        • tdg8934
                          tdg8934 @xevdev last edited by

                          @xevdev ok so my Facebook one probably only is sent to Facebook friends so I’ll use the Twitter approach.

                          1 Reply Last reply Reply Quote 1
                          • tdg8934
                            tdg8934 last edited by

                            All - I’m looking for a way to simulate a sunset. In the game using the frame buffer I would like to know how to make the screen look like the sun is going down or coming up in the morning. I tried the render effect but got a little lost in knowing what values are valid. I want to be able to set a timer so that after a while, the map looks dimmer as the day progresses. Ideas please?

                            Thank you - Tim

                            1 Reply Last reply Reply Quote 0
                            • vinicity
                              vinicity F last edited by vinicity

                              There are probably multiple ways of doing this, but one solution could be to draw a black box over the entire screen, and changing the alpha value of the color in order to make it more or less prominent.

                              tdg8934 1 Reply Last reply Reply Quote 1
                              • tdg8934
                                tdg8934 @vinicity last edited by

                                @vinicity is there an easy way to control the rgba values?

                                I can create an image with a black box and send it to the frame buffer. Then in the main loop, draw the image But I can’t adjust the rgba values inside of the main loop. Is there some undocumented info about this?

                                If I wasn’t drawing a map then I could change the rgba values within a. Clear({0,0,0,0.5}) statement.

                                1 Reply Last reply Reply Quote 0
                                • xevdev
                                  xevdev F last edited by

                                  Drawimageex() will do it.
                                  The tint value just set to white and because it's a vector you can times it by another vector
                                  E.g.
                                  White * {1,1,1,1} will be the full colour range
                                  White * {1,0,0,1} will only show the red component.
                                  So just make a global variable
                                  Vector night_day
                                  Or an array of vectors for each time period
                                  And times it by the white component in drawimageex()

                                  tdg8934 1 Reply Last reply Reply Quote 1
                                  • Jongjungbu
                                    Jongjungbu F last edited by Jongjungbu

                                    Here's an example of darkening the screen to complete black slowly over the course of 5 minutes.
                                    Of course, that's too dark, and you want it to brighten as the new day approaches, but I'm just breaking it down to one simple task.

                                    dayTimer = 0 // initialize to 0 is essentially a disabled timer.
                                    dayLength = 300 // seconds long for this timer
                                    
                                    loop
                                         clear()
                                    
                                         if dayTimer==0 then dayTimer=time() endif   // start timer if inactive
                                         if time() - dayTimer >= dayLength then dayTimer=0 // stop timer if exceeds time frame
                                    
                                         //draw black box that gets progressively darker as we approach 300 seconds
                                         box( 0, 0, screenWidth, screenHeight, {0,0,0, ( time() - dayTimer ) / daylength }, false)  
                                         
                                         update()
                                    repeat
                                    

                                    This is pretty much what I do when I want to fade to black or reverse in all of my projects. Some form of this.

                                    tdg8934 1 Reply Last reply Reply Quote 3
                                    • tdg8934
                                      tdg8934 @xevdev last edited by

                                      @xevdev it’s working! Thank you.

                                      “
                                      screenimage1=createimage(1920,1080,true,image_rgba)
                                      serdrawtarget(screeninage1)
                                      box(0,0,1920,1080,black,0)
                                      setdrawtarget(framebuffer)

                                      array night_day[1]
                                      night_day[0]={0,0,0,0}//Morning
                                      night_day[1]={0,0,0,0.3}//Afternoon
                                      night_day[2]={0,0,0,0.8)//Evening
                                      night_day[0]={0,0,0,0.99)//Night

                                      loop
                                      :
                                      drawimageex(screenimage1,{960,540},0,{1,1},white*night_day[0],{0,0})
                                      :
                                      Repeat
                                      “

                                      1 Reply Last reply Reply Quote 0
                                      • xevdev
                                        xevdev F last edited by

                                        I was surprised that worked then I saw that your using the box.
                                        If you just draw the game image using drawimageex()
                                        You can alter the colour spectrum of the image.
                                        {R,g,b,a}
                                        Red component.
                                        Green component.
                                        Blue component.
                                        Alpha transparency component.
                                        Each has a number between 0 and 1
                                        So as your getting closer to night time twilight you might have slightly more red than the green and blue and don't worry about the alpha set to 1
                                        Night_day = {1,0.8,0.8,1}
                                        Or {0.5,0.4,0.4,1}
                                        So the second is half of the first and will be darker.

                                        tdg8934 1 Reply Last reply Reply Quote 1
                                        • xevdev
                                          xevdev F last edited by

                                          You would probably need to think about layers of drawing.
                                          So your game would be one image and your control schemes would be another ( which you already have ) and print the control scheme with no colour adjust last.

                                          1 Reply Last reply Reply Quote 0
                                          • tdg8934
                                            tdg8934 @xevdev last edited by pianofire

                                            @xevdev this also works The same as you said (without the black box):

                                            //display scale (handheld or hdmi)
                                            float descale=0
                                            int width=0
                                            width=gWidth()
                                            if width==1280 then
                                               descale=2/3
                                            endif
                                            If width==1920 then
                                               descale=1
                                            endif
                                            :
                                            g_buffer=createimage(1920,1080,false,image_rgb)
                                            :
                                            array night_day[1]
                                            night_day[0]={0,0,0,0}//Morning 
                                            night_day[1]={0,0,0,0.3}//Afternoon 
                                            night_day[2]={0,0,0,0.8)//Evening 
                                            night_day[0]={0,0,0,0.99)//Night
                                            :
                                            loop
                                               setdrawtarget(g_buffer)
                                               clear() //need this!
                                            :
                                               drawmap()
                                               updatesprites()
                                            :
                                               drawimageex(g_buffer,{960,540},0,{1,1},white*night_day[2],{0,0})
                                            :
                                               drawsprites()
                                            :
                                               setdrawtarget(framebuffer)
                                               drawimage(g_buffer,0,0,dscale)
                                            :
                                               update()
                                            Repeat
                                            
                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post