jobel's Recent Forum Activity

  • Nepeo oh right, that makes sense. Basically I have a game at a specific URL. They can go fullscreen. When they are done with said game, I'd like them to be able to exit. But it doesn't look like that's possible.

  • your cutscene should be on it's own layout. Unless its simple and you want it to overlay the action.

    there's no reason to make multiple layouts unless you break it up by cutscene 1, cutscene 2 etc...

  • Nepeo well thats the problem then. I'm just going to the web page by clicking a new browser tab. Is that why people run their games in an iFrame?

  • Laura_D

    do you ever stream later in the day? I always miss your stream, it's too early in my day.

  • I know its been posted about before but I can't find the answer on here.

    I have a Browser Object and the Action Close when the user hits a button. But it won't close when I make an HTML5 build and upload to a server. I read that you needed a secure server and I indeed have https:// before my URL but it does not work to close the TAB.

    What am I doing wrong?

  • AllanR

    the nice thing about layerTocanvas / canvasTolayer is that it will work from any layer to another, regardless of parallax or rotation.

    yeah it sounds like Canvas functions just do the math for you.. nice to know about!

  • is that Button_Point on the 0x0 parallax layer? it needs to be otherwise it won't work.

    I updated the c3p to use a 3000x3000 layout and it works for me.

    drive.google.com/open

    I create a UIbutton on the HUD layer (para 0,0) and then I spawn something on the game layer (para 100,100). I then move the camera to a different area of the layout and it still works fine.

    However, I didn't know about CanvasToLayer (and vice versa), that seems like it will work as well.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • here is my test

    drive.google.com/open

  • yeah I think you have to give viewport the layer. You are just trying to get the edge of the screen x/y then add the x/y of the UIbutton.

    if you make a Textbox and Everytick set text to UIbutton.x/y - also display scrolx/y you will figure out the calculation. or likewise run the debugger and just look at the x/y coords

  • oh your UI button is on the 0x0 parallax? I think I understand.

    Maybe try using scrollx and scrolly?

    Create UIbutton on Layer "HUD" (0x0 parallax)

    Create SWAT on Layer "Human" at

    x: (scrollx - (viewportwidth / 2)) + UIbutton.x

    y: (scrolly - (viewportheight / 2)) + UIbutton.y

    There's probably an easier way, but I think this should work.

  • afaik if they are disabled they aren't using any processing power.

  • what x/y are you using?

    if you are clicking (using the mouse) --> Create object at mouse.x mouse.y on layer "Objects"

jobel's avatar

jobel

Member since 27 Jul, 2013

Twitter
jobel has 8 followers

Connect with jobel

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x4
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

18/44
How to earn trophies