lamar's Recent Forum Activity

  • Oh OK. I get it. So I guess I should use mouse instead of touch for this to work.

    You can use both but on click and on touch or tap will return the same result.

    You can have your user choose which they will use at the first of your game which is what I do. That way it can be played on a PC with mouse or tablet.

  • Yup and that is what I am trying to do setting up my arcade so people can pick a game and play instantly and score and level will be saved to their own Browser.

    If Scirra would get busy and get their arcade server fixed and get their load screens to show a picture of the game preferably as an animated gif instead of their huge -ss advertisement then arcade websites like mine can host those games and promote them to our visitors.

    That is the direction Scirra needs to go instead of worrying about porting to consoles and mobile apps that I do not see as the future of gaming.

    People are getting leery of downloading apps that collect info and may charge kids for stuff they don't want.

    Hey Tom & Ashley have you read this article and can we do this?

  • It makes it easier at least for me to keep objects I may want to copy or clone as I progress on the game on the original layout as dragging them from the sprite list resets sizes. After your game is done you can clean it up and use a separate layout but I don't want two layouts with the same sprites while designing because the settings may not get changed in both sprites. JMO.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • InyTinny more a system. Can just delete the array, and it still works. But at 1 point you need the array to easily store inventory in local storage and recreate inventory from local storage. And then this is the way to go. Every instance variable on 1 place in the array.

    https://www.dropbox.com/s/lofat0vb0xwaf ... .capx?dl=0

    Now that is a real nice use of arrays!

    I think I will borrow that for my platform builder. The window popup and drag and drop is prefect for that use.

    Thanks!

  • Because when you click an object your touch is also triggered so it repeats first command.

    Here is a CAPX demonstrating use of touch for different uses.

    https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

  • thank you lamar!!!!

    I am deeply moved and I'm about to cry

    I'll try!!!!!

    LOL- well you don't need to go that far!

    You are welcome and that is something I can probably use in a future game.

  • Here is a CAPX using 3 sprites as touch controls showing how to do it with continuous touch drag:

    https://www.dropbox.com/s/dr7susdzqyatyg4/Sound%20Touch%20Control.capx?dl=0

    I may have a use for that later!

  • They would have to upload the music to some website file you have set up and then call it by URL but by the time that is uploaded your users have probably lost interest in playing the game so I would avoid that.

    You can give users several music styles to choose from and let them rotate through the choices.

  • Are you trying to record in live time to C2?

    You can use file URLs but I don't see that working in live time recording.

    This tutorial might help:

    https://www.scirra.com/tutorials/1232/mixing-the-file-chooser-and-video-plugins-construct-2-music-player

  • > Destroy them on start of layout then create them when you need them. If they are outside the layout but then destroyed then they are loaded in memory and any lag is avoided.

    >

    Okay, that will work.. quite a "brutal" method and somehow rough around the edges, I would have guessed that Construct has a method to handle objects which are needed later on in the game a more elegant way, but doesn't seem so.

    Thanks for your help!

    you can destroy them or use their settings to set them disabled.

    If it is a bullet I destroy it and create when needed. For buttons and other objects I use disabled and enable as needed. I set all my buttons on the layout and make them visible and enabled as needed.

  • Easier way to do this is using the "Is touching" and "Is in touch" conditions.

    I think he wants the user to drag continuously changing the sounds?

  • The problem is if you set something to play while you are touching the screen it will be triggered over and over as long as you touch the screen until you crash the sound card.

    You need a more specific trigger and a way to stop that sound after it has played.

    You could use a Y and X variable on the touch control for that trigger and I would check the acceleration of the drag. Keep the sounds short and add an auto stop so they don't overlap.

    On Y > 100: Play sound

    and X > 100

    and Touchacceleration >50

    On Y < 100: Stop all sound

    Or X < 100

    and Touchacceleration <50

    Every 3 seconds: Stop all sound

    Something like that.

    You could also use blank sprites as trigger points on your screen that when the user slides across changes the sound being played.

    Here is a CAPX for a continuous drag to change sounds using sprites:

    https://www.dropbox.com/s/dr7susdzqyatyg4/Sound%20Touch%20Control.capx?dl=0

lamar's avatar

lamar

Member since 11 Feb, 2014

Twitter
lamar has 8 followers

Connect with lamar