broknecho's Recent Forum Activity

  • Almost had this entry ready for the COMPO but just missed the deadline. Took the extra time to add some tutorial messages and general cleanup. Super fun to work on.

    http://ludumdare.com/compo/ludum-dare-3 ... &uid=45690

  • Alright I was fiddling with this more and the overlap condition in construct just reports ALL sprites that are overlapping and it's difficult to compare two objects of the same type with that. I don't see a reason why instead of using an instance variable, you just create a separate object, Doing this allows more power anyways and simplifies all that code I posted earlier to just this:

    Sprite3 would be your "Flag=1" objects. Where the Sprite would be your "Flag=0" objects. Which gives this result:

    This greatly simplifies your task and I believe produces what you want. If you ever needed to change an object your can just spawn a new one and delete the old one in it's place if needed. Instance variables can also be added to the https://www.scirra.com/manual/142/families if you have access to that.

  • Hmmm well I think it might be a limitation in targeting web techs for the output. Because of that, you are at the whim of the technology itself and how it handles multiple windows.

    So for example, you can create a "popup" in a web browser but there is a disconnect there from the child window to the parent window that construct would have to handle. Construct doesn't support this right now that I am aware of.

    Now consider that on mobile, how would you even achieve that kind of popup?

    Now consider desktop with NWjs. NWjs would have to support opening a new window which might be possible but then Construct would again have to deal with the new child popup window.

    It's not really an easy problem since the deployed platform controls so much about the windows container that the construct instance live in (i.e. Desktop, web browser, mobile).

    The Multiplayer side of things is probably still the way to go for a realtime second screen. Could even have your main screen on your computer and then have the second screen on a tablet using that method.

  • As far as I'm aware, you can't spin off another window control.

    You could make the window size super wide that would span over multiple monitors but that would probably be ugly.

    Other way would be to use the multiplayer functions to have a second client join the game as your score keeping window. Little more complicated but would be able to create the effect you're looking for. NWjs for some reason can't spin up a second instance at the moment but you could do it with two browser windows along with the multiplayer.

  • Sorry about that SteveKane! I thought you were more just looking for the pseudo code or math to do it.

    alextro 's capx works good! Here's a screenshot of their solution on the the math there:

    That capx creates that green sprite on a multiple of 50 in the X axis along the top of the screen, Guitar hero-esque

  • Please search forums before posting. I see 93 postings for "spawn specific from family"

    There is no way to specifically spawn a specific family member but that is not what they are designed for.

    This plugin can do what you need:

  • Something like this?

    1- Divide your height by your desired width: 300 / 50 = 6

    2- floor(random(6)) = your random location

    3- your Y value = 50 * random from step 2

    Example:

    300 / 50 = 6

    floor(random(6)) = 2

    50 * 2 = 100 <--- Answer

    Have fun!

  • Ok! Thanks Vallar for clarifying that.

    seawall This does what has been described:

    EDIT: Added comments

  • Try this:

    I'm not clear on what flag is supposed to be set where but you can change that condition to your likings.

    EDIT:

    You're actually just having issues with colliding with the same object. See this post's example capx. Construct is not very limiting at all but it does take some time to get used to how the picker works:

    https://www.scirra.com/forum/collision-between-instances-of-the-same-object_p686645?#p686645

    Good Luck!

  • Hey ChrisFagan! This is definitely possible but be warned that Multiplayer games are quite a bit more work. You can easily double your workload and headaches as a long more variables come into play. Doubled again if you're going for multiple platforms.

    With the https://www.scirra.com/manual/174/multiplayer plugin, you can setup the clients to connect to each other. Given your scenario, you can setup a layout with multiple layers: One layer that will hide everything in the level, a Second layer where all the level information is shown. Then with your clients, if you are Player 1, you hide the information layer and show the hidden layer. Then with Player 2, you can do the opposite and hide the hidden layer and show the information layer. Showing and hiding layers can achieve your effect based on what player you are.

    You don't actually have to be in the same layout on each client when using the Multiplayer plugin as long as you don't do any of the automatic movement syncing. Using the messaging system is probably good for your example.

    With a single project, you would have to let one client choose to be the host but then have the tablet just choose "JOIN GAME" or something like that and you could direct it to a different layout based on it's platform.

    In regards of the cross platform, this is very well suited for that. One client could be on a computer (NWjs) and the other on a tablet(android/iOS).

    That is a very quick example but it's definitely possibly. This is a huge topic though so it's hard to give concrete examples.

  • You can use the Browser plugin to access the console of your browser or NWjs window: https://www.scirra.com/manual/110/browser

    Browser.Log is the action you're looking for.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks zatyka for putting this together! Your crawler got my game Minko!

broknecho's avatar

broknecho

Member since 24 Apr, 2013

None one is following broknecho yet!

Trophy Case

  • 11-Year Club
  • RTFM Read the fabulous manual

Progress

12/44
How to earn trophies