YetAnotherSuperhero's Forum Posts

  • I need to trigger an action when all instances of the same object have the same value for a variable. And I can't figure this out.

    How do I do what I wanna do? I wish I knew.

  • Hey, my code:

    Ship.Value('Health')<0
    
    (Sub Event) Objects.Value('Target:UID')=Ship.UID
    
    then: Object.Value('Target:UID')=0[/code:dhg7hmua]
    
    ("Objects" is a family that "Ship" belongs to)
    
    But, this never sets Objects Target:UID to 0
    
    I've tried and tried an I can't get this to work.
    
    What am I doing wrong?
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok. Thanks for the Help!

  • Thanks for the help.

    I've looking it over and still can't make sense of it. BUT! I've narrowed down one line of code that doesn't work in 99.72+ but works in 99.7.

    There is a corner button and three circle button. The circle buttons are supposed to be layed around the corner button as they are when you compile the .cap in 99.7. But when you compile it in 99.8 the circle buttons are clumped together.

    So, am I picking families wrong? Or is this a bug?

  • Oh my god! Thank You! this is perfect!!!!

  • Thanks for the help. I'm trying to make it work, but it's going to be messy.

    P.S. I just had a thought is there an easy way to do this in python? Or if some lovely coder whould like to make a plugin for this. It'd be great!

  • That's what I was thinking, but I can't figure out how to implement it. Since the days only show what day of the month it is (Not what day of the year), I'd have to include months, but then since all months are not equal, (not even factoring leap years), it becomes quite a mess. I was wondering if anyone had any smart ideas on how to implement this.

  • I'm stumped. DOes anyone have any ideas on how to get the amount of seconds since, let's say, Jan 1 1970.

    The reason I needs this is my game logs the last time you played and updates what happened during the time you started again. So I need to know how that's been.

    Thanks again for all the help.

  • Okay, I uploaded a file in the Uploads forum. I hope this can be worked out.

    Thanks.

  • Here are two caps showing the same code using familys not working in 99.8 but working in 99.7.

  • Is there a way I can upload a file privately? I'm sorta skittish about my ideas and work getting used by someone else?

    I know not very community-friendly. I'm sorry.

  • It appears that picking with families doesn't work anymore. It was working in 99.7, and broke in 99.72.

    Is there anything changed in them? It seems like it picks all in the family (he he) rather than the one the conditions apply to.

  • Sorry, if this has been asked for before. I did a search and couldn't find anything.

    But would it be possible to be ale to alter the wrap margins in the wrap behavior during runtime? or at least set it to DisplayWidth and DisplayHeight?

    Thanks

  • So... in my ship game you can zoom out. And each ship don't has a label (Ship name, position, etc.) but you zoom out and the text is unreadably small. Any ideas for a fix?

  • The current frame of the animation is the one where the animation is loaded to. So if you set the animation frame before loading the image, you can load multiple images into one object. However, this requires you to have as many blank frames as necessary to load up all of your images.

    My game makes heavy use of this method, so I might take a crack at making a plugin to simplify it.

    If it's not too much trouble, could you make an example of this? It's not quite meshing together for me.

    Thanks.