XHXIAIEIN's Recent Forum Activity

  • Hi, R0J0hound, How do I know the value of Sprite.rot just flipped back?

    dropbox.com/s/6qs81zmktsd3so8/yaxis_rotate.c3p

    For example, I want to make a similar effect, flip to the back when I click.

    codepen.io/RuudBurger/pen/gOXKrr

    codepen.io/alvinwan/pen/zemjbw

    It's not easy for me to understand of rotatedVector, unlike rotateY(180) I can tell that it's rotated by 180 degrees

  • But I have to say a negative feedback.

    I took my notebook out to work. When I had WIFI, Construct worked fine, but when I closed WIFI, only can see a blank screen when I clicked on the preview project. The browser console prompted Failed to load resource: net::ERR_CONNECTION_CLOSED, I have to reconnect to the network to continue the preview. (Note: this project uses the JSON file in the AJAX request project.)

    But when I got home and wanted to feedback this problem, I couldn't specifically reproduce it. It only happens when I'm out.

  • you can use the AJAX plugin to communicate with the device using the Get and post methods. check the documentation: https://www.construct.net/en/make-games/manuals/construct-3/plugin-reference/ajax

    This is a simple example

  • Font size

    You can do this in your browser by pressing Ctrl + +/-, and Press Ctrl+0 to restore the default scale.

    tips: If you click on the Properties bar and pressing Ctrl + +/-, it will scale the entire editor.If you click on EventSheet, the scaling will only apply to the font of the EventSheet.

    Font family

    you can use browser extensions to do what you want:

    Stylus

    chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne

    This is a simple stylesheet example:

    body,button,html,input,select,select option {
     font-family:"Californian FB";
     font-size:84.57%;
    }
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
    • Post link icon

    Did your project is use large images(For example, the resolution is very high)

    or use large Margins on the Layout? (Layout size is normal, but the margins are large. once time I wanted to make an big world where the player moves around in a scene with one shot. Using a very large Margins, and it often lagging..)

    • Post link icon

    Maybe try updating the Nvidia graphics card driver? Or open the NVIDIA Control Panel,Check the 3D settings, if some features have been modified globally, if not sure, you can try to restore the default settings.(For example, I have tried to turn on anti-aliasing globally, which caused my VSCode code to be blurred.because it uses GPU rendering)

    If it still doesn't work, is it something to do with the computer's power options? For example, the laptop has turned on the power saving mode

  • After last talking about requesting support for WeChat/AliPay payments, I'm back to request a plan.

    Support for Export to Wechat miniprogram/minigames.

    What is WeChat minigame

    WeChat is a communication software used in China, and it can be said that almost every Chinese person who owns a cell phone uses WeChat.

    And WeChat miniprogram, which are light applications built on top of WeChat.Distinguished by their uses, WeChat in turn uses application tools as Wechat miniprogram, and games specifically as minigames.Of course. There are only slight differences between them.

    You can install WeChat and use the 'scan' to experience

    minigame-demo

    ---

    WeChat Development

    Weixin miniprogram Development

    Other Engine

    Now, most commercial game engines in the market already support publishing to WeChat mini-games.like Unity, cocos, Phaser....Or some other H5 framework.

    Adaptor for minigame: minigame-adaptor

    Unity WebGL to minigame:minigame-unity-webgl-transform

    cocos creator to miniprogram:Publish to WeChat Mini Games

    Phaser.js for miniprogram:Wechat Small Game with Phaser.js

    threejs to miniprogram:threejs-miniprogram

    canvas for miniprogram:minigame-canvas-engine

    ---------

    I know it's a very big project to support a new platform, but hopefully Scirra will go ahead and support him, thanks!

  • If I'm not mistaken, this can be done with this expression in C3:

    lerp(0, 200, unlerp(sprite.bboxleft, sprite.bboxright, mouse.x))

    Wow, I didn't know it could be used like that! Thank you, I got it!

  • It may have triggered the protection mechanism of Aha, and my submission was mistakenly deleted as spam.

    construct3-21h2.ideas.aha.io/ideas/C321H2-I-485

    ---

    Before waiting for the administrator to review, I would like to resubmit my ideas here.

    Processing has a great function:

    processing.org/reference/map_.html

    p5js.org/reference

    map(value, start1, stop1, start2, stop2)
    

    Re-maps a number from one range to another.

    It is used to calculate a number reach another number get 0-1 progress and re-mapping into another range according to this progress,. I think we could have a similar expressions. That would be cool.

    remapping(value, x1, y1, x2, y2)
    

    Example

    map(mouse.x, sprite.bboxleft, sprite.bboxright, 0, 200)
    

    Map the mouse's X-axis position to the left and right position progress within the Sprite range, and map it to a value of 0-200.

    - If mouse over bboxleft, then the mapping value is 0.

    - If mouse over bboxright, then the mapping value is 200.

    map(30, 30, 60, 0, 200) // 0
    map(60, 30, 60, 0, 200) // 200
    
    map(90, 30, 60, 0, 200) // 400
    map(6, 30, 60, 0, 200) // -160
    

    Notice that even if the position of the Mouse exceeds bboxright, it continues to grow at the current scale.

    What comes to mind is that it can be used to make some virtual joysticks, The progress bar. UI controls. Or a mapping of relative positions.

    For example, I want to simulate dragging an object with a mouse, and then calculate a power to the stretch within the range of the UI indicator image.

    map(mouse.x, 0, Width, MinPower, MaxPower)
    map(mouse.y, 0, Width, MinPower, MaxPower)
    
  • You can do this using Tween behavior.

    - Tween(value)

    - Set Text to Self.Tween.Value("")

  • Ashley I think what people need is probably just more example code, provides complete samples of code snippets that implement a specific function. Or have a page devoted to some common usage examples.

    how to create an object

    The current documentation(link):

    createInstance(layerNameOrIndex, x, y, createHierarchy, template)

    However, for beginners, really don't know how to use it. He should provide an example

    runtime.objects.Sprite.createInstance(0, 100, 100)
    

    You notice that people often ask in the forum how to create an object with a script, how to call function with a script, how to get an instance object, how to change the Text ....This is because the documentation does not provide such example code, so people don't know how to get started

  • Some browsers(edge) will block when the user first open console, requiring you to click the confirm button to open.

XHXIAIEIN's avatar

XHXIAIEIN

Member since 26 Mar, 2016

Twitter
XHXIAIEIN has 11 followers

Trophy Case

  • 8-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • x46
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x10
    Lightning Draw First person to up-vote a new Construct 3 release
  • x9
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

20/44
How to earn trophies