DUTOIT's Forum Posts

  • I presume you are talking about the character standing in the block?

    This is because you didn't set your collision polygon. Its these little dots that you drag out to the edges...

    [attachment=1:3hlvwdwm][/attachment:3hlvwdwm]

    I made the sprite a little bigger(more clear space and dragged it out a fraction) you need to do same for rest i.e character doesn't have a barrier, only on left.

    This is the solid barrier that cannot be crossed so to speak.

  • Cool, I'll have a play around with that later. Does the invisible sprite also need to have the main movement routines (eg I'm currently using MoveTo + Line of Sight to chase the player when they can see him), or can you assign those to the main sprite, and just leave the pinned invisible ones as Custom Movement with Solid enabled and it'll work itself out?

    My main problem in the past has been the way sprites sort of 'pop' around the place when pushing out of solids, especially when clumped - it just looks glitchy and bad. A lot of my game is also in very tight tunnels which makes it doubly hard to find something that works.

    No, use pin behavior and pin barrier box on start of layout to enemy.

    Try widening your collision polygon. Open sprite edit and bottom left is lots of dots, drag them out to widest points, try to make circle round sprite this is the barrier for solid. See how that looks before adding invisible sprite, make sprite image bigger (the clear space) and widen the circle till it looks about right... see if that works. I say circle because square will give that bumping look when colliding. circle rolls around nicely.

    Edit: monitz87 answered above perfectly, but try and play around with collision polygon first, see how it looks

  • I think what he means is pinning an invisible sprite to every enemy, and making that sprite have a bigger hitbox than the actual enemy sprite (the area which you don't want other enemies to enter). You should also place it in a container with the enemy. Then, whenever those sprites collide with something, you can do whatever your logic determines (such as making the enemies go away from each other and then continue to pursue the player), or if you want the easy way out you just give the invisible sprite the solid behavior.

    This way you achieve enemies never clipping with each other without actually having to affect their hitbox (which I assume you want unchanged for shooting them or whatever way you have of damaging/defeating them)

    Exactly.

    If you are a sucker for punishment you can also run a few checks when enemy 10px from hero do this that etc

    But I would go the clear sprite / add container / pin it or set collision polygon wider than enemy and turn on solid behavior.

    But the clear sprite and collision gives you greater options with AI.

    Sidenote: I suck at AI too... lol

    I accidently hit back button and wiped my comment above. I said something like force field/invisible barrier, couldn't remember in case you wonder why I edited it

  • put an invisible barrier around enemy.

  • another example...

    [attachment=0:1sgzt8hd][/attachment:1sgzt8hd]

    And another way is you can also add buttons functionality to groups and enable/disable groups.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Arima, its happending in preview... and yes it messes with logic - lol, I didn't submit my game into the construct2 competition because the logic wasn't working, turns out that the changes weren't being reflected correctly, so what I thought was a random bug that broke the game, was actually the cache not being refreshed with new updates/changes.

    Its actually weird, it doesn't do it all the time - hence it took me awhile to catch on. Agree that preview a second time (used to fix) because last night those red boxes remained even on 2nd/3rd/9th time in IE. I changed browser to chrome and firefox and boxes were gone. I then changed back to IE and it they were still there.

    The boxes disappeared after a couple minutes... think cache was flushed by time passed/software/c2 but it showed changes.

    Anyways, this has happened a number of times, I originally thought it was my logic, the way I tried to do things, but it definitely isn't reflecting changes, well not immediately at least. (this is on rare occasions only, not every time)

    Took me awhile to catch on because I don't build a game in one project. I build it in modules multiple projects then add them all together at the end.

    Edit: I see you point after reading your bug report in more detail. I think this is something else, but it is also the same, or at least a blend between both bug reports.

    Bug at its core: Changes don't reflect in preview, the fact that I added a variable and it didn't show. Deleted a sprite and it remained, says it is cache issue. Perhaps ashley has more insight.

    Problem is it doesn't happen all the time, it can't be reproduced - which won't help ashley. I am just going to have to cycle browsers for preview to get latest changes.

  • Ashley, sorry didn't spot open bug by Arima, and I can confirm that this happens 100% with Internet Explorer. So judging by other topic it is all 3 browsers.

    link to active bug topic by Arimia

  • bland that is because your browser caches the files. It is common practice to always either refresh the browser (even better hit Ctrl+F5 to clear the cache) or to just close your browser after each preview and let it launch a new one. That is not a bug, that is just the way browsers work.

    Not entirely true, C2 has a update type version number that when doesn't equal cached version number should flush c2 cache and show updates correctly. I know c2 has something like that build in, problem is that it goes wack eyed periodocally. This is the same thing that updates html5 games to latest release etc etc. Your end user can't be expected to refresh if he wants to install new version of game I don't know how ashley has designed it, but it used to work. lol.

    But I do agree its good practice to flush the cache as a programmer, but it isn't good if it is designed to self update and it isn't

    Ashley, sorry I created another bug report on same topic, I didn't see this one. I can confirm 100% it is also Internet Explorer. So it is all 3 browsers.

  • Problem Description

    Hi Ashley, this is a hard one to explain and reproduce. I believe it has to do with the cache and version number and not updating/flushing cache when something updates.

    Attach a Capx

    Lol, I tried, but it is browser cache and can't be shown via capx. The minute you open in different browser it shows correct changes.

    Description of Capx

    ____ Concise description of what this CapX does ____

    Steps to Reproduce Bug

    I have had it happen a few times now

    Basically I edit something, preview edit something else preview a couple times and then suddenly a change something and those changes don't show.

    For example.

    Do something with variable and show that data in textbox/spritefont and it doesn't show work in browser.

    I added 1 to variable "onboat" on left mouse click on sprite.

    In debug no variable called "onboat" and no 1 being added.

    I made another change, something different and it obviously bumped the version and changes came through.

    I also just deleted 5 sprites different project and in preview they were still there. lol.

    The easy fix and reason why I can't provide a capx is the minute you change browsers and preview in new browser. The changes are there. When I go back to problem browser the changes are not there.

    Screen capture over 2 screens.

    The 5 red sprites have been deleted, but they still showing in I.E.

    [attachment=0:3ktf242u][/attachment:3ktf242u]

    Observed Result

    I have notice a few folks in the forums struggling with variables and it not showing the data (highscore comes to mind) even though the events/actions were correct. I believe it isn't refreshing the cache (flushing it) and showing new improvements.

    Expected Result

    Preview not showing changes, but rather outdated cache.

    Affected Browsers

    Definitely IE

    I think firefox

    I can't say for sure about chrome, but I believe it is also effected.

    Operating System and Service Pack

    Win 7 pro

    Construct 2 Version ID

    Last 2 releases that i've noticed, last beta, and now stable 173.

  • Ashley, ok, I load animation from bundle to construct, export it and put grey background in PhotoShop - so

    http://i61.fastpic.ru/big/2014/0617/9e/ ... 192c9e.png - explosion from bundle

    they are same! completely same! extremely same!

    You are correct. It is same image. I have reported him to envato already.

    They don't use email, you have to submit a ticket - which I already have. I have seen his second image too, it is identical to another image, I just can't put my finger on where I have seen it.

    I think it is from one of the online rpg sites... but can't say for sure which one (so many)

  • OK, here is the capx. And just one question: can I change the order of the layouts in my game?

    Wow, you seriously need to follow my advice and do some practice with examples.

    More resources would be to open your C2 click new and scroll down that huge list of "GOLD"

    Your capx is a great 1st attempt, but you need to learn how to do things properly else you are going to pull your hair out later on.

    To answer you question - Yes you can and I presume you mean change order as to what is your first layout then yes you can, click on project file in right top panel and change project property settings first layout to whatever you want to load first.

    This is basic stuff, covered in the manual.

    Good luck, happy learning...

  • DUTOIT

    Great minds...etc..etc

    zenox98 True, and I still love your signature - wish more would read/understand/and apply it to there current level/position of knowledge.

    Start simple, Start Small and build on each experience.

  • I replied in your other topic concerning this question and I said the same as zenox98 - and offered 2 links to tutorials you should work through.

    > What is a capx? and how to use this Score.capx from Lordshiva1948?

    >

    SadisticDentist Seriously?

    Okay, I suggest before you do anything... read the manual

    Do the example games, don't just look at it or copy and paste. I want you to recreate it line by line.

    tutorial one

    tutorial two

    All new folks say, but that isn't what I want to build. Understand that they cover the basics, and the basics is what you use to create any game. for example in the first one shows you how to use text and global variables i.e score

    The example from lordshiva1948 requires latest stable release and a external plugin - so it isn't going to help you. Do the tuts I linked to, they have all the basics, and the answer to your question(s).

    Roll up your sleeves and learn the tool (construct2) it is a fantastic program that rewards those who spend time learning how to use it.

  • What is a capx? and how to use this Score.capx from Lordshiva1948?

    SadisticDentist Seriously?

    Okay, I suggest before you do anything... read the manual

    Do the example games, don't just look at it or copy and paste. I want you to recreate it line by line.

    tutorial one

    tutorial two

    All new folks say, but that isn't what I want to build. Understand that they cover the basics, and the basics is what you use to create any game. for example in the first one shows you how to use text and global variables i.e score

    The example from lordshiva1948 requires latest stable release and a external plugin - so it isn't going to help you. Do the tuts I linked to, they have all the basics, and the answer to your question(s).

    Roll up your sleeves and learn the tool (construct2) it is a fantastic program that rewards those who spend time learning how to use it.