brendanpoke's Recent Forum Activity

  • I hope I'm not going off topic "programming and Construct3" by opening this discussion. But I wanted to say that I am passionate about anime, so I would like to know, even just out of curiosity, if there is anyone else on the forum who likes them. Some anime have given me great emotions and fun, and it would be nice to try to create a game together on an existing anime.

    I started programming precisely because I have watched them (and maybe I thought I would want to participate in the creation of one?). in fact I ask myself if, given the choice, I would be a video game programmer, a manga artist, or work on the creation of an anime? I like drawing, but I feel comfortable programming, even if doing it alone is becoming more and more boring...

    Is there anyone who shares something like this? It would be interesting to talk about it.

    by the way, some of my favorite anime are the romantic ones like Sailor Moon, and the comic ones, like Sergeant Keroro (Sgt frog).

    Yours?

  • You are right! In fact dpad up is negative, but the strange thing is that the value is -1!

    I've already thought about it, I don't know if I can write events that work for all gamepads, but for now I just want to test the difficulty of the game with my gamepad, I'll think about that later...

    Who knows how to find the mode button is (it wasn't select that was missing, but mode, which is not detected in any way in the panel), but it must be something even more complicated, I don't want to think about it... XD

    Yes, if used with good sense, technology is fantastic!

  • ohh XD I got something. Of course it's the strangest thing that's ever happened to me while programming.

    well, I get results ONLY with (gamepad.rawaxis(0,9) listen:

    with dpad right I get: - 0.428...

    dpad left: 0.714...

    dpad down: 0.142...

    not pressing any d-pad button, the text reads 3.285

    Ok, maybe if you are very knowledgeable in mathematics you understand the meaning of these numbers, I don't. Now guess what I get by pressing dpad up?

  • Not 4, not even 6, 10!

    But how strange, I had already done this test, and it seemed to me that it was 12? well... I definitely imagined it... or I got confused.

    okay, the number is 10. However, the gamepads I bought were 2 with a USB stick (they cost very little). Maybe it doesn't matter, since I also know that (0) indicates gamepad index number 0, so the second has nothing to do with it.

    ah, there's another strange thing (just for change XD): the expression Gamepad.RawAxis returns with (0,0) and (0,1) the vertical and horizontal value of the left stick. While (0,2) returns the horizontal value of the right stick.

    At this point, it occurs to me: (0,3) will return the value of the vertical axis of the right stick, but instead it returns nothing... >.<

  • Are you on Windows?

    You could go into your control panel in windows, game controllers, and it let's you do a little test to see buttons light up.

    I think I remember some controllers think the "D pad" is almost like an analogue stick or a trigger with sensitivity, even though you'd expect it to behave like a regular button.

    Good idea, hadn't thought to look on devices. But I have to insert some screenshots, I don't understand well. I'm Italian and the screenshot is in my language.

    The box with "Asse X" written underneath represents the left analog stick. The 2 colored bars with the words "Asse Z, rotazione Z" represent the right analog stick. (sounds weird to me, but I get it). As for the buttons, they all work except the select, and the dots all can light up except 11 and 12.

    The strange thing (for me) is where it says "Punto di vista", here: that represents the d-pad, and it works. (Arrows appear.)

    What should I do? it says that perhaps calibration is necessary, but it only concerns the analog sticks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't have Steam, I've never even used it. could it be a browser problem?

  • No, it doesn't mark the d-pad at all. But I'm playing a gba/nds emulator on the computer where I use the d-pad, it works. What does this mean?

  • I looked at other posts with similar problems but didn't find a solution for me. I have 2 gamepads that connected to construct3, all buttons work, except select button and all 4 d-pad.

    Can the problem be solved? anyone have idea why?

    I've already tried to do this with a text object -> set text to gamepad.buttonindex, but it doesn't mark anything after pressing d-pad.

    Tagged:

  • Welll.....

    Manually entering data into an array would be tedious. And, any time you need to make changes or add things... ick.

    Manually creating a JSON would be even more tedious. Just making sure you got the syntax right.

    Assuming you don't have a lot of experience with MySQL or PHP, what I would do is something like this. And keep in mind, this is not an ideal solution but it would be a good starting place to learn about databases.

    First, I would download SQLite Studio (google it) and use it to create a database of the objects in the game. Depending on how you structured it, it would be dead easy to add levels, add new objects, etc. just by adding a new item to the table.

    thank you for all answers.

    I wouldn't know what to do. The idea of ​​having to add other things (and STUDY other things) bores me... But after all, the more I program, the more I want to do complex things.

    I don't know if I should do as you said or do as in the last example of dop2000. (which is already complicated, but I can do it, I'm studying it).

    For now I don't really want to download SQLite or learn MySQL or PHP yet, but if you tell me it's really convenient (and I'll need it in the future) then I'll seriously consider it. Is it?

    Until now I have inserted the objects for each layout manually, but now I already have 15 - 20 levels in my game. And then I MUST be able to make sure that the levels are a little randomized. I would like to make a game with even 50+ levels. There are already about 10 enemies and I want to add more, and there are also tools or upgrades. However I MUST be able to randomize the game, still following a logic of my own invention.

    Here, look at this screenshot, this is the minimum complexity I would like to do, for the moment.

    Another thing: I found this link, take a look: https://www.construct.net/en/forum/construct-2/how-do-i-18/store-sub-array-inside-main-102648

  • I want to create an array or .json file for my game.

    is a side-scrolling space shooter.

    My idea is this: every movement of e.g.: 1000px is chosen to create either an enemy, or some asteroids (for example 70% probability asteroids, 30% enemies).

    The point is that there are many object types that fall into the "enemy" family, and many object types in the "asteroid" family.

    And each level has characteristics, some enemies are not present in that series of levels.

    And I was thinking of also including items that enemies can drop, or if an asteroid is destroyed there is a 5% chance of finding a rare item.

    So I would have to create a hierarchy of objects that can be encountered in each level, and then enter the values ​​manually.

    How should I proceed? I have to use Arrays? Or JSON? Else?

  • Yes! It worked perfectly! And immediate.

    I was afraid that since there were almost 100 objects (almost all small stars) there would be some problems but none!

    Thank you!

  • Thank you! now I have to create a function that creates all the objects.

    Can you tell me how to do it? With an example? sorry but my brain is on fire, Json I struggle to understand.

brendanpoke's avatar

brendanpoke

Member since 7 Aug, 2019

Twitter
brendanpoke has 1 followers

Trophy Case

  • 5-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

9/44
How to earn trophies