Button Follows View

This forum is currently in read-only mode.
From the Asset Store
Easily generate many levels from a set of pre-built scenes (Construct 3 template for top-down view games)
  • Why does my button follow me? And how can I keep it in place?

    http://www.box.net/shared/7a17ssa6k2

  • Application controls are handled by Windows, so they don't work properly in instances like this. They're meant to be used with the application runtime.

    You'll have to make your own button, or you could use my sprite button plugin to save some time.

  • It's a Windows control object. It wants to be rendered to the screen in the same relative position that it was created in. You can't really do anything about that.

    If you want buttons that behave properly you can always make your own button objects out of sprites. Or you can try out linkman's Sprite Button plugin:

    Edit:

    Lol at simultaneous posts ... the forum didn't even warn me that a new post had been made. Weird.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • that's because PHPBB sucks

  • So is that internal problem with Construct? It does not happen if I do that with say Visual C# or GameMaker.

    Is there a work around for the Edit Box too? I really need to have one of those at the end of my game.

    I guess I can switch to a new layout but there should be a way to do it since other languages can.

  • I don't know about Game Maker or what they're using for their buttons and input boxes, but I have a feeling that it's not the Windows control API which is what Construct is using. As in... it's Windows.

    So yes, you may want to have a separate layout if you really can't be bothered to make your own button.

    Also, why are you having the player enter his name at the end of each race? Shouldn't he be entering his name on the previous screen when he's picking his car? Then you can just use a simple text object to show the player's name, and it can sit anywhere on the screen you like.

  • I was only having him enter his name if he made a high score. It would be tiresome to enter you name every time you played and then not got a best time.

  • I see. But on a similar note, you could have the player enter his name on the first screen, and save the name he enters in an .ini. Then when the game runs again, it will put that name into the box for you so you don't have to enter it every time, or the player can change the name if he wishes.

    Either way, when the player does get a high score it could automatically have his name associated with it. This would also keep the player from entering his name repeatedly if he keeps getting a high score on different tracks.

    IMO it just makes more sense to me to input your name on the player select screen.

  • I think this is console (profile) versus arcade (each time) style =)

    profiles suck for hotseat, some games (SSB) even have an arcade mode for this!

  • I made a custom editbox example a while ago(just now posted it in the uploads section) that you could check out:

    Custom Edit Box Example

  • I made a custom editbox example a while ago(just now posted it in the uploads section) that you could check out:

    Custom Edit Box Example

    That's a clever solution

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)