UberDark's Forum Posts

  • Have two seperate serverside php files and set which one to use based on a variable?

  • Make an invisible or hidden little sprite behind the first battery and pin the battery to that. Then pin all other batteries to that object as well? Would that avoid your problem?

    I am working on a map with little flags on it. All instances of the same flag. Every time a new flag is placed it is pinned to the map and it works fine so i am guessing that would solved it. If not, perhaps you can post the file you are working on so i can try some things for you?

  • Cheers linkman2004

  • Asking is not a problem i think.

    Glad you found the solution

  • In the 'edit animation' screen on the left you see a couple buttons. The bottom one is 'Set collision polygon. That is where you adjust the hitbox pretty much. Right click on a sprite and select 'Edit animations' to get there.

  • To make the question more clear here is a video of what it looks like in the game..

    I would like to know the answer to your question too.

    I think at least i can say that even though there are no 3D modelled objects in the game the coordinate system used to put the floor texture in perspective is a very crude 3D engine. Construct2 does have direct3D and WebGL capability but how to program this with the actionscripting of Construct2 is beyond me. If it is even possible..

    Curious to see other peoples responses!

    Kyatric Ever seen anything like this done in C2?

  • Nice! Thank you kindly korbaach

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I would like to limit the number of characters (letters, numbers and spaces) to 160. How would I go about that? Is it even possible?

    The text box is set to 'textarea' by the way..

  • Can you post a .capx? (the file you are working on)

    Or otherwise a screenshot of your event sheet?

    I can suggest several ways to respawn but you are saying you can also not spawn objects and that makes it a different problem.

  • That will only work if the character and walls are at least 30 pixels wide though With a 2 pixel wall and a 10x10 pixel character it could skip right through. So you would have to considder the placement of every piece.. Here is your example but sizes are changed so it doesn't work anymore. https://dl.dropboxusercontent.com/u/1750576/gothroughwalls.capx

    So this is really up to vorpalblade if it would work in his situation or not. Perhaps otherwise show as an example of what you mean vorpal..

    Is there nothing like raytracing in construct? Anyone?

    Otherwise perhaps use lerp and have an invisible object move from the character to the destination and report any overlay with solid objects which would cancel the move.

    Not sure if this could be made practical and work but I know this would work in theory. Someone with proper Construct2 knowledge here that can give their thoughts on what I just suggested?

  • Is there nothing like raytracing in construct? Anyone?

    Otherwise perhaps use lerp and have an invisible object move from the character to the destination and report any overlay with solid objects which would cancel the move.

    Not sure if this could be made practical and work but I know this would work in theory. Someone with proper Construct2 knowledge here that can give their thoughts on what I just suggested?

  • no worries <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    There is probably smarter ways than mine but this will get you by for now.

    If you want to read more about functions, here is a link to the manual page about it..

    https://www.scirra.com/manual/149/function

  • I hope this makes it more clear for you..

    https://dl.dropboxusercontent.com/u/1750576/chooseexample.capx

  • You can read about both these expressions here..

    https://www.scirra.com/manual/126/system-expressions

  • If you are just wanting it to pick a between a couple choices you can use:

    choose(a, b)

    This will select one of the two..

    So could also be numbers like;

    choose(1, 2)

    for example.

    You can add as many choices as you want.

    choose(a, b, c, d, 2, 4, 15, pizza)

    The 'random' function is used for picking a random number between two numbers..

    You should use choose instead i think/