justintime0185's Recent Forum Activity

  • Hey guys!

    So, I've been learning programming through courses on youtube. I just finished a 'Intro To Programming' video. Took notes and everything. I use Construct 2 for practical use on logic.

    Through my journey I've come to realize that, I'm a better hands on learner.

    Things start to make more sense AS I'm doing said thing.

    So, with that out of the way, I was wondering if anyone can recommend some exorcises

    that could perhaps teach me some hands-on uses and applications of arrays and dictionaries.

    To be even more clear - I understand arrays and dictionaries conceptually.

    But, my knowledge on HOW to use them in Construct 2 is nil.

    For an example; I would like to learn how to create an inventory system where each npc also has their own items, gold, equipment. I have no idea how I would start referencing data, and 'if statements' surrounding the value of each cell. But, I'm not here to get answers on that, because I think it would be too confusing at this point

    in this time as I just want some basic exercises that will help me understand expressions, and how data is cross-referenced.

    Thanks!

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Without the trigger once it would spawn a lot of items anyway I guess. With the trigger once it could be fine but maybe if the item gets destroyed and the bool toggles then it will also spawn a lot of items. The fix kind of depends on the design of the game but you could add a check if player is overlapping the spawn point. You could also think about adding timer behaviour to the spawn point so each has their own timer and if player is overlapping it then it doesn't start counting.

    Hey dude! I decided to go with the simplified approach.

    My spawning variables were too complicated. Think it would be better if I simplified that bit of code without on/off variables.

  • And actually that makes a lot of sense. That could be the problem.

  • That's a good idea. I haven't played with the timer behavior yet.

  • I have put a system in place where an object spawns every 24 seconds.

    The only thing is, there is an exploit that could be found here.

    If the player were to jump into the item spawn at the 24 second mark,

    the player gets a bunch of the items all at once.

    I tried making it spawn 'Once while true' but that doesn't seem to work either.

    Got any ideas?

    The other bit of code is whether or not the spawn is 'On'. I've made it so if the item it spawns is overlapping, the spawn turns off.

  • 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

  • Hey, man. Thanks, but I tried that.

    I fixed the issue, already. Used 'On Collision'' instead of 'Is overlapping'.

  • You do not have permission to view this post

justintime0185's avatar

justintime0185

Member since 26 Aug, 2015

None one is following justintime0185 yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies