MrMiller's Recent Forum Activity

  • I agree with Silent Cacophony. Taking it one step at a time and breaking it up into parts is the best thing to do.

    Myself personally, although I've had some experience with other types of software (DarkBasic, Visual Basic, some MMF2 Dev), I still had to slow down and learn Construct. I'm still learning something new every day and I am far from mastering this. But, I'm able to now make a complete game from start to finish, and as time goes by I'll pick up on some of the more intricate techniques that will make my games even larger and more sophisticated.

    I think the point where I started to become most comfortable is when I'd get stuck, and then sit there and refuse to move until I figured out the solution. At that point I realized that I was at least thinking in the procedure necessary to pull off what I wanted to do in Construct, it just takes time and patience.

    My final point and probably the biggest... don't give up. This software program is absolutely amazing, and with people like Silent Cacophony around, you will have a lot of opportunities to learn something new. Between he and some of the other guys who post example .caps, you'll be learning in no time because of how thorough they are. I remember I couldn't nail Global Variables in Construct to save my life, but then someone posted a .cap example. I read it, reconfigured it to what I needed, and now I know the procedure by heart and I've applied it in many different places. It's made a world of difference to my building progress.

  • I'm confused by how Custom Movement works in Construct. I've only used very basic movement with Construct as a result. But I wonder if there is a way to do Custom movement where you can have one sprite move based on what another sprite does? Like:

    Sprite 1 moves left 100 pixels causing Sprite 2 to move left 85 pixels.

    I wonder if it can be done with characters you're not controlling? Hmmmm.

  • If you have Audacity or some sound editor you could just put both mp3's into one file.

    Yeah, I've been debating with myself about doing that. Right now I only have 2 songs so it would be a good idea to just combine them. But I'm holding out for the possibility of having like 10 or more with them all being selectable track by track, I'm just not sure of all the songs I want to use yet.

  • Holy crap, you're right. I kept multiplying by 10 and not taking into account the proper conversion calculation, lol. That's a real shame on my part

    Thanks, tulamide!

  • I've been putting some music into my game. One track is 3minutes 2seconds, the other is 4minutes 4seconds. For the first track I set milliseconds as 305000ms in order to give my song a buffer to finish before the next song plays.

    I have:

    *Start of layout

    +XAudio2: Play "ThisMusic.mp3"

    *Timer is equal to 305000ms

    +XAudio2: Play "ThisMusic2.mp3"

    The problem is, instead of the "ThisMusic2.mp3" playing right after 305000ms have elapsed, it just sits silent for about 2 and half minutes, and then suddenly "ThisMusic2.mp3" begins to play out of nowhere.

    I also tried the timeline object and got the exact same result.

    My questions are:

    1. Is there another method to getting these songs to play right after the time period ends instead of minutes after?

    2. Is it a bug with milliseconds not calculating right?

    3. Could it be an issue with my machine?

    4. Should I be thinking Global variable here? I've created a clock in Construct using a global variable, but I'm not sure how I would approach using it for this?

    I'm stumped. I've found that if I cut the ms time down I can get better time, but it's tricky trying to guess a time and requires me to listen the song all the way through in order to test it.

    I even tried shorter files like one 22 second file jumping to a 26 second file. That one calculated perfectly using 22,000 ms, but the larger files are not working so well.

  • I don't think that's what he was asking, he wanted to know how to display a webpage in a game or app, which maybe the http object does, but I've never used it, nor do I know how...i think it's mainly for formatted text. could be wrong though. also, this belongs in help/tech support

    Oh. I don't know why I got the impression that he was asking about making webpages.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here is a thought that might get me laughed at... but, nothing would really stop you from making something in Construct, taking a screenshot at runtime, cropping it in another program like GIMP or Photoshop (similar to what you did in your initial post), and then uploading the picture file. From there you could add links on top of the pages you uploaded while inside the webpage uploader console (most hosts have them). In reality, all a webpage is is a visual with clickable links to take you from page to page.

    Having said all of that, if creating websites from scratch with a strong code base is the goal, then there are programs specifically designed for that which I think would be much better suited for building a full-fledged website.

  • Great minds at work

    Thanks for all the info and examples, guys! I can use a lot of this stuff in the future, too.

    @Lucid...I understand what you're saying now. That's a good tip. I have the global variable in already, but I tested your example and it works well too. I'm thinking about doing a mini-game where I would use a similar approach. I'm going to hide things under items and have the user find it by destroying the front sprite.

  • > So I thought the same type of concept might work for double-pressing a single button, and figured maybe I was just missing something to make it work this tme. But if that's not possible in this specific instance then I have no problem just sticking with a Global variable.

    >

    The difference in the double pressing case is you need to keep state. Before you could just check if two buttons were pressed. You need something to keep state and a global or private variable are the easiest ways. There is no good reason not to use them as this is the type of thing they should be used for.

    Ah, gotcha. GV it is.

    Thanks guys.

  • You should get to know private and globals really well.

    They're essential, really, and easy once you've used them once or twice.

    Well, to allude to my earlier post, I know how to do a Global variable as that's how I created my timer. But I'm curious about an alternative because of something I did in the past. In a test I did a few months ago, I was able to set up events to where when I pressed A and B at the same time it would jump to a new layout without using a global variable. So I thought the same type of concept might work for double-pressing a single button, and figured maybe I was just missing something to make it work this tme. But if that's not possible in this specific instance then I have no problem just sticking with a Global variable.

    Here is what my events look like without the double-button press code present:

    <img src="http://farm5.static.flickr.com/4010/4669662881_b9f1daba2c_b.jpg">

    When I click A sprite 23 shakes infinitely, when I click B sprite 23 stops shaking and sprite 24 starts shaking infinitely. This is to identify that the user has chosen the item. Neither sprite is to be destroyed.

    The double button press would be to select the item that was chosen.

  • Thanks for the info, newt!

    Luckily for me, I just learned how Construct does Global Variables 3 nights ago thanks to a help question someone posted about fixing a timer. It just so happened that I needed to create a timer, so by seeing how he wrote the code I was able to take it and reconfigure it into what I wanted (code examples and .caps are golden).

    But I wonder, is there a way to activate an event action on a second button press of the same button without using a Global variable? I only need this action to activate in one screen. You press B and the item shakes infinitely letting you know you've selected it, then you press B again and it jumps to the new layout... or at least that's what I was trying to make it do through events. The shaking part I have, the other part is where the trouble is.

  • I'm using the XBOX 360 controller object. I have a setup like this:

    *When I press the 'B' button, an image shakes.

    What I want to do is set it so that when I press the 'B' button again it activates an event action (like jumping to a new layout).

    I know how to set an event action to make it jump to a new layout under normal circumstances, I just can't seem to figure out how to make it work on the second button press... right now, it jumps to the new layout on the first press.

    Do you know what I could be overlooking?

MrMiller's avatar

MrMiller

Member since 4 May, 2010

None one is following MrMiller yet!

Trophy Case

  • 14-Year Club
  • Email Verified

Progress

15/44
How to earn trophies