brendanpoke's Forum Posts

  • 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!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • I'm trying to learn how to use Json but I can't figure it out.

    I created an event where I record an object (bgobject) and its parameters in a .json file.

    And then I want to load the layout with json creating all the objects in their position and its parameters.

    But I can't find the contents of the arrays.

    I also found an old discussion in the forum but I still can't continue.

    --> https://www.construct.net/en/forum/construct-3/how-do-i-8/valuesjson-array-loop-166959

    What should I do?

    and is my approach with JSON right?

    Tagged:

  • Object: x<-margin
    — object set x to self.x+640+margin*2
    Object: x>640+margin
    — object set x to self.x-640-margin*2

    Yes I had the same idea as in your example 2.

    that's the solution.

    It wasn't working because I was making another mistake.

    Now I've solved it.

  • In my game after a while a window appears inviting the player to install another of my apps (using browser -> go to URL).

    How can I use gameanalytics to check if the user has tapped the image? (and if he is connected to the internet because I want to have confirmation that he has viewed my page of the other app in the play store)

  • I'm trying to create a special level in my game where the spaceship travels in circles to a space station. (which appears to rotate as it is made up of 8 frames).

    The viewport view does not move.

    Only stars and nebulae move (family called axis).

    my idea was to make it so that when the nebulae and stars go out of the layout width they return to x=0.

    When their x value goes below 0 they go back to 3416. (the viewport size for x is 854).

    But obviously something is wrong.

    Probably I'm missing something that I should consider and so I ask you, maybe there is someone who immediately understands what is the problem.

    So how should I do it?

    I also leave a screenshot of the code I tried and a link to my google drive to download the c3p file (if needed).

    https://drive.google.com/file/d/1OybYrRKOcEAyl3wyJ0UvcNrvxDuSI0QT/view?usp=sharing

  • What do you think is the best (or simplest) way to make a mechanical octopus?

    What I imagined is a boss at the end of my level of the space shooter game.

    The octopus has a tentacle that moves towards and away from the spaceship and the player must dodge it and attack the boss.

    But I would like it to be realistic and nice to look at.

    Do you have any advice?

    your example is perfect and nice to look at.

    I can't figure out how to make the tentacles variable, i.e. I don't want each tentacle to make the exact same movement.

    and each tentacle piece must have a slightly different angle from the previous piece.

    Your example is well done because I notice that when the octopus pulls up its tentacles and they curl they are not exactly the same as each other. the first tentacle is more closed than the second.

    In short, everything must be very random and not static while maintaining specific attack and movement functions.

    In your example each piece of tentacle has its own angle, but when the octopus raises its tentacles both do so, so they have the same function in the same period.

    I'm studying to understand how to make the octopus raise one tentacle at random and the others stay down.

    Furthermore, the tentacle taken at random must head towards the spaceship then if you manage to move it must come back.

    Up until now I have analyzed the hierarchy as a simple feature, I could do the same by putting a function like this:

    - every 0.01 seconds "octopuspiece(2)" set position to "octopuspiece(1)" image point1.

    But I guess I still haven't understood all the hierarchy features and become familiar with them.

    However looking at your example and having read the answers I'm sure I have to use hierarchy feature.

    Maybe I'll ask you again for advice on hierarchy.

    Thank you.

  • I want to know if I already have a public app in the play store, if I insert a new release and publish it in the internal test channel,

    Can anyone who has my app see the contents of the internal test?

    or can I only see them because my Google account email is part of the tester group?

    I can't understand.

    Until now, since I wasn't sure, I created 2 apps, 1 internal test and 1 public, so I'm sure that only I can test it.

  • What do you think is the best (or simplest) way to make a mechanical octopus?

    What I imagined is a boss at the end of my level of the space shooter game.

    The octopus has a tentacle that moves towards and away from the spaceship and the player must dodge it and attack the boss.

    But I would like it to be realistic and nice to look at.

    Do you have any advice?

  • Hi everyone!

    Even though I've been using construct3 for years, I still haven't posted anything about my games. While I have already published them on the play store.

    But now I want to share them here.

    There are still many incomplete things and many errors, so don't be scared! (if you decide to download them).

    I would also like to try to create a game and work together with other programmers, until now I have worked alone. I'm passionate about anime, I'd like to create a game about an anime together with some other programmer. If anyone wants to write to me this is my email. ---fedekgames101ppr@gmail.com---

    Here are the games:

    Lolirock: invaders from space

    https://play.google.com/store/apps/details?id=fedegalaxy.galaxy135.lolirock

    This is the first one I posted, it's weird, but it works well, try it!

    Sgt Frog game (Keroro gunsou)

    https://play.google.com/store/apps/details?id=fede.dreggman.kerorogunso

    This is based on one of my favorite anime, sgt frog. But it's messed up, there are a lot of errors, and I haven't worked on it for a year. Sorry if it's in Japanese, in the game there is the possibility to change the language. (there are only a few dialogues).

    Space Shooter

    https://play.google.com/store/apps/details?id=galaxy135.galaxy135.spaceshooter

    This is the last game I made, I'm currently working on it. But I must say that it is paid ($30), I hope in the future to start earning something from this game, but I need to improve it a lot.

    ((I also have to replace some images quickly, that are taken from internet and it's not good (for copyright))).

    But I will, because I really like to draw by hand (yes on paper!:)) and create the images for my games by myself.

    I still have to improve, but I'm learning to code and draw at the same time! XP

    Tagged:

  • Ok now something works.

    I had created two sessions on GA, and in the last few hours I watched the wrong one.

    It started working when I entered the bundle ID, and updated the app.

    I thought it wasn't necessary because I read (optional) about GA, but it was.

    Thanks!

  • But... isn't there another way? Simply with the basic construct3 plugins? Like Ajax/Browser?

    I just need a few informations from players, like for all players who installed the app how many reach the final level.

    Isn't there a way to get the report to another my app or directly to my computer?

  • > Is remote preview and scanning with QR code the same thing? I use this feature often. Should it work this way? (so I avoid updating the internal test every time).

    I don't know if it will work with remote preview. But for remote preview you will need to configure browser game and secret keys.

    With remote preview you can set up remote debugging:

    https://developer.chrome.com/docs/devtools/remote-debugging

    Then you will be able to check for errors in browser console log.

    It still doesn't work even though I checked everything.

    So now I try with logcat and remote debugging...

    Thanks for the advices and links...

  • I haven't used it for several years and don't remember all the details. But at the very least you need to enter the Game Key and Secret Key in plugin properties. And I think the app id of the project should match Bundle ID in GA.

    > Perhaps Game Analytics, in addition to not working on PC preview, doesn't even work in the internal test.

    No, it should work in internal test. It should even work if you make a debug APK and upload it directly to your phone.

    If you are sure that everything is configured properly and GA still doesn't work, you can try getting Logcat logs from your phone. If there is something wrong with GS, there will be an error message in the log.

    Before trying this logcat thing I would like to make sure I haven't forgotten anything.

    I had already entered the game key and secret key, but not the bundle ID because I had read optional on Game Analytics, however now I'm updating the internal test app to try again.

    It should even work if you debug APK and upload it directly to your phone.

    Is remote preview and scanning with QR code the same thing? I use this feature often. Should it work this way? (so I avoid updating the internal test every time).