chris200x9's Recent Forum Activity

  • Hi, I'm having a bit of a hard time and would appreciate some help. I have a grid of sprites with each one having a row value, a column value, and a type value. If the type is the same all throughout a row/column I want to toggle a global match bool and set a variable to tell me where the match occurred. I'm not overly familiar with construct and I'm not sure of how to do a "pick all where ___" type deal.

    In short, I want to pick a certain row/column and then compare the type value of each to see if the match. Something like if sprite 1,1 type = sprite 1,2 type match++ and if max equals the number of rows we have everything in the column matching.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Thanks!

  • I have rows and columns of blocks and I need to store in instance variables all the blocks it's touching and where it's touching them.

    For example:

    aboveUID =

    belowUID =

    leftUID =

    rightUID =

    I've created image points on my sprites for left, right, top, and bottom but I'm not sure where to go from there.

  • You do not have permission to view this post

  • I'm trying to make a (simple) mobile game that works on multiple screen sizes and aspect ratios. My idea was to create a large layout and then have a relatively small viewport. I can then use a scale outer to run fullscreen and just set an invisible bounding block to the edges of the screen.

    I've tried:

    set width = viewportright(0)-viewportleft(0)

    set height = viewportbottom(0)-viewporttop(0)

    construct.net/en/forum/construct-2/how-do-i-18/size-different-screen-108642

    But I don't know if it's working. My width always seems to change whether I change the width OR height of my browser window. Likewise my height never changes.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, I'm trying to create an accessibility app and was hoping to avoid actual coding. What I'm trying to do is have multiple speech synthesis objects I can refer to by name so I can save their paused state between layouts. For example, I want to be able to pause speech, go to another layout, speak, go back to the original layout and resume from where I paused. Originally I tried saving my string to an array of words I could speak out and just pop off so that on a pause I could save where in the text I was but this had very poor speech as it was speaking word by word not sentence by sentence. Now my idea is to create multiple speech synthesis objects I can just keep paused. If I can't create multiple speech synthesis objects is there a way to store the paused state buffer in a variable for later use?

    Is any of this even possible using construct?

  • Right now I'm trying to convert a string of text into an array of each individual word and it's working well. I am unsure how to figure out when the string ends though. I want the entire string iterated through so I have a full array of the words in the text. How do I go about looping until the end of the string? Do strings in construct have some unique end of string character I can test for?

  • No, this is not possible. When you spawn a family, a random member of the family will be created.

    You should use "Create by name" action. For example:

    Create object by name "Bullet"&BulletType

    After that if you need to change any bullet property, add a sub-event "System pick last created BulletFamily" and there you can set bullet angle, speed etc.

    Thank you! Just incase anyone in the future stumbles upon this here is a visual representation:

    Just toggle the bullet global variable to the bullet object's name you want switched to.

  • Hi I'm trying to spawn bullets from a gun and can easily do that but I am a bit at a loss on how to expand my functionality.

    I am trying to create a family to hold all my various bullets with a family instance variable of bullet_type so I can uniquely identify each bullet and switch types. My end goal is to use a global variable compare to select the correct bullet to spawn depending on powerups. The spawn object action asks me to specify a specific object though. Is there anyway to do something like:

    spawn family object where instance variable = power_bullet

    or something?

    Any suggestions about how to go about this?

chris200x9's avatar

chris200x9

Early Adopter

Member since 5 Mar, 2015

None one is following chris200x9 yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies