Glitchster's Recent Forum Activity

  • I thought of a way for you to continue with multiple objects - you'll use on touch start or on tap gesture as your trigger, so there is only one event that triggers on touch, like so -

    I'm going to assume the best way is to still do the tile mapping. I'd rather do it the best way possible than to work around with what I have.

  • Yea, I was thinking there would be a better technique than what I was doing.

    And that else, although makes sense when you put it that way, it's not how other languages I know use it.

    I'll chalk that one up to learning and watch tutorials on tile mapping. Although the game isn't fully formed in my head just yet, I think the direction I'm going will turn into something fruitful.

    I'm sure I'll ask for more assistance in the future. Thanks.

    P.S. the total number of sprites in the grid was 1952, not 900... kinda funny.

  • I'm surprised and thankful you're still answering my silly questions. I'm slowly chipping away at this mountain and thank you for your patients.

    I've changed the creation of the sprite grid to include random(), but the 10 ways I tried don't seem to work even though it accepts it and it's completely logical. But that's not even my real problem.

    Don't bother looking at the gate commands, I haven't gotten around to that yet.

    I got the id's to work like a charm - I think...

    I had them kind of working better earlier, but they weren't getting there, so I tried a different approach. I think I'm closer, but I don't think my new way is going anywhere either.

    I can honestly say I have no idea what is happening with the random generator or the grid sprite swapping.

    my game file is here: www -dot- cazualnoob -dot- com/web-games/

  • Well, that worked like a charm and I did it.

    I've been searching all day and trying to find a way to select or pick a specific sprite without interacting with it with a touch or anything. Like, I want to indirectly affect a tile. I want a character to chop down a tree that is close to him. Do I have to click on the tree and say cut down, then he'll walk over and cut it down, or can I just put him somewhere and say cut down the nearest trees in reach?

    Is the loop not an array or can I mark each sprite block with an instance variable id? Construct 2 is so different than what I'm used to - scripting.

    It's so frustrating when I can't figure out something that I think would be so easy.

    I uploaded the newest game file to my server.

  • OK, I did it, but I can't click one to change it.

    Is it not

    on touched (sprite) - system create object (a different sprite) at (first sprite.X, first sprite.Y)

    • first sprite - destroy

    ?

    I know it works, but it doesn't work with sprites created with the loop.

    my game file is here: www -dot- cazualnoob -dot- com/web-games/

  • I don't use skype anymore, I use discord. Unfortunately, I can't send you a pm, I'm too new.

  • Probably biting off more than I can chew for my second game, but there might be an easier way to do this than to create 900 sprites that are clickable and changeable.

    I have a 29x31 grid I want to be able to click each square and change it to a different object. It will be like a tower defense game.

    My fears:

    ... to do 900 sprite objects all by hand

    ... do it in an un-optimized manner where the game won't run properly

    ... run into a dead end and have to start from scratch.

    Any helpful suggestions, words of wisdom, or places to start would be greatly appreciated.

  • Awesome guys, thanks for the help.

  • Well, I'm at a loss.

    For anyone wanting to help (or to check it out): www dot cazualnoob dot com /web-games

    I'm having a hard time telling construct who's hp to hit.

    I had the game working perfectly before I added bad guy hit points (each bad guy would take one hit to destroy, now I want 3 hits). At that time the player hp worked perfectly - sometimes it doesn't now.

    Only the first bad guy has hp that is pinned - which leads me to believe my instance id's are not being successful.

    I've been messing with it for so long, I'm going backwards.

    I don't know when construct is selecting the target object (in javascript it would be "this"). Expressions are not my strong suit, but I can't find where in construct I can manipulate the code with expressions I want. Just having a hard time figuring construct out.

    Thanks in advance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Awesome, thanks. I think that put me on the right track.

  • So, I'm kind of new. I'm creating multiple instances of bad guys who spawn in at random locations and I'm pinning their hp bars to them.

    Their hp amount are instance variables. I'm just having a hard time figuring out how to id them and connect them to their prospective hp bars (that are pinned to them as they move).

    I'm currently making id's (+1) for each created in the bad guy's instance variable. However, I don't think that is going to work. I need to use the UID, are those system controls only in the full version or is this impossible to do in construct 2?

    A hint would be great, as I would prefer to figure it out myself, but if there is already a tutorial (that I can't find out there) that would be just as good.

  • Yes, all the stuff I make runs fine.

    I can only assume there is something you're using in your example that is not in the demo version.

Glitchster's avatar

Glitchster

Member since 12 Jul, 2015

None one is following Glitchster yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies