AnD4D's Forum Posts

  • To reach the player <img src="smileys/smiley1.gif" border="0" align="middle" />

  • With the help of users on this forum, I've reached a pretty good point in the development. I can have many NPCs walking around and navigating the level pretty well.

    The problem comes when I want the NPCs to change what they are doing. Their standard action is to randomly walk around the level, however, I also have a system in place that has them shoot objects out in front of them, which get larger until they hit a wall, at which point they are destroyed. This is to replicate their field of vision, so certain parts are obstructed by walls, but NPCs will still be able to see the player from the 'corner of their eye' so to speak.

    When these field of vision objects hit the player, it spawns a remember point at the players location, which the NPC should walk toward, and hopefully be updated when the field of vision again hits the player. This will allow the played to hide from and escape the NPCs.

    In any case, I hope I explained that well. The problem is that I struggled to have the field of vision objects relate to the correct NPC, but I think I have that sussed. The issue comes when I want the NPC to follow the player. For some reason, once they have found the player, they just walk straight into a wall and get stuck. I cannot see what I have done wrong.

    I'd also like to know if there is a way to simplify what I have done.

    Link

  • Very clever! Thank you very much!

  • Regarding the lights part first:

    I have a system set up where if you approach a wall, the texture will change to show that it has lit up. It works, but I want it to work for every member of a family, which means that any character will light up a wall when they walk up to it (NPCs). It's not working out that way though. It will only light up when the player approaches the walls, and I can not figure out why.

    Regarding the sliding Door:

    I'd like to have it so that when these characters approach doors, they will slide open. They are 64 pixels wide, and I'd like them to slide open when characters approach. The thing is I can't think of a simple way to do it. I want it to reverse back on itself around 60 pixels when the characters are a certain distance away. Then, when nobody is close enough, the doors will move back into their original position. I'd like to do this using the sine behaviour, but I can't figure out how. My only options are horizontal and vertical, rather than forward and backward.

    Hope I'm making sense, and I hope somebody can help with either or both of these issues :)

    Link to game

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can you provide a capx rather than a project?

  • Not sure if this is the easiest thing to achieve just yet, especially if you want the cars to react to other cars. Using the path finder, you could have key points around the track which your cars will target as the destination, and then when they get close enough to the next point, the destination changes.

  • 2) About Tiled Backgrounds. The ones currently supported are a bit of a black box. The manual doesn't tell you much about the algorithm for tiling (size, does it recognize mirrored tiles).

    I haven't made an in-depth search on the subject on the forums and there is bound to be some info around. What I know is that there are some plugins around trying to provide a more "orthodox" tiling functionality.

    Imagine a 32 pixel squared chequered box. You can then increase the size of the sprite and the image will loop perfectly. I use it for space backgrounds. It is great for seamless textures. Give it a go, it is really easy.

  • Keeping it short and simple because C2 is already quite cool (and I am sure that there must be a lot of these kind of lists around in the forums):

    -Reverse animation flow action

    -Sprite frame optimization (if two or more frames of the sprite are the same they don't get included twice)

    -Tiled Backgrounds

    Hi Alcemon,

    What do you mean by reverse animation flow? I found that if I put a minus number in the speed it plays it backwards. Also, don't we already have tiled backgrounds? Is there something you don't like about them?

  • My name is AnD4D, and I'm a Construct 2 addict...

    I first picked up C2 a little over a year ago, right after I'd just spent a couple hundred on Multimedia Fusion 2 and all of its plugins. I've tried, quite a few times to go back to MMF2 since, but I just can't. I don't see the point. C2 is so much easier to use. For example, I was asked to demonstrate what could be achieved with C2 for a company, and they asked me how long I thought it would take. I said 3-4 weeks for 6 mini-games. I started last Friday, and I have more or less already finished it, with just the menu left to build.

    In any case, I'm a C2 user for the long run, and I've had a few ideas for games rattling around in my head for the last several months (two of them I believe, as arrogant as it sounds, will make me rather wealthy <img src="smileys/smiley36.gif" border="0" align="middle" />), but I know the software isn't 100% where I need it to be. A while back, I had a brainstorming session, and jotted down a few of the features I'm most looking forward to, thought I'd share it, and wondered what other peoples hopes (and dreams) are for C2, along with the features they're waiting for.

    � Per Pixel collision

    � Lights/Shadows

    � Pathfinding (DONE - YAY)

    � Families (DONE)

    � Containers (DONE)

    � Directional Based Animations without code required (as in MMF2)

    � SaveAll/LoadAll

    � Seamless looping music

    � Built in sprite text/font

    � Native exporters so that I do not have to pay someone else a % of my earnings <img src="smileys/smiley2.gif" border="0" align="middle" /> but that's not too important for now.

    Anyway, that's my story and list. What is yours?

  • I would like a system that can find all of the whole number divisions of each number.

    E.g's

    10 = (1,2,5)

    15 = (1,3,5)

    28 = (1,2,4,7,14)

    The only save number I can figure out is 2.

    Rounding up or down won't work.

  • Hi guys,

    Sorry if this isn't really the correct place for this, but I tried looking online for a solution, and can't find it anywhere, and the things I've seen people pull of with numbers on this forum are incredible.

    I'm trying to set up a system that will work out the division of a number, and so I have Var1/Var2=Var3, but I only want to use numbers that will divide into whole numbers. I have therefore set it up so that it will only show me even numbers, and to do this, I used the expression choose(2,4,6,8...) as the first variable, and then 2 as the second, as that is the only way I can guarantee a whole number.

    I thought about having a system that would divide the first variable by 2, and then generate randomly from 0 to that figure, but I knew I'd end up getting decimals (10/4=2.5).

    Is there an equation that would choose numbers that would generate a whole number as a result?

    Division Example

  • I thought bumps were supported by the developers so that new users can see these.

  • Wow! Thanks I'll look into this. Very clever... though I barely understand it. Never used parameters before, nor the ? or : symbols in expressions. Still got a lot to learn.

  • vee41, Brilliant! I didn't know about choose. That will come in useful :) Thank you very much!

  • If I disable the "Trigger Once" command, the event loops, and quickly changes the numbers. If I press 1 or 2 on the keypad, it triggers once, but the event changes. Why does this not work?