dcrew's Recent Forum Activity

  • Um even if they add a way to add multiple comparisons to or, that wont work with picking using the system compare. Also you have the possibility of triggering the action more than once.

    Block.AnimationName = "Block1" | Block.AnimationName = "Block3" | Block.AnimationName = "Block13" | Block.AnimationName = "Block14"

    Will return a value of 1 if any of those are correct.

  • tulamide

    Sorry, I misunderstood. Now I understand, thanks! And I don't mind waiting <img src="smileys/smiley17.gif" border="0" align="middle" />

  • You sure you don't want to use the in-built platform behavior?

    I need to design custom movement, Since built-in one when it collides with Block it would stop, and I want it to only stop if the block animation is equal to certain values. Plus this is my first ever attempt in game-creation at custom movement, so it's interesting and exciting! <img src="smileys/smiley17.gif" border="0" align="middle" /> <img src="smileys/smiley17.gif" border="0" align="middle" />

  • Well:

    <img src="http://screensnapr.com/e/sYWMPy.png" border="0" />

    It seems to be now glitch free :D

    It just needs some more work to make it better, thank-you guys/girls!!

  • Remind me of a custom platform movement I did before the corresponding behavior was created.

    Did you do that as an exercise?

    You should use dt to ensure smooth and non fps-dependant movement.

    add 50*dt to xSpeed will add 50 per seconds but bit by bits every tick ('cause dt is the time between two ticks)

    And then set X to player.X + xSpeed*dt you will go at xSpeed px/seconds

    Also as Weishaupt said it's better if you provide the capx, there's some other information we need to judge your work or at least to try it.

    Thanks gonna try that now, The thing is the capx is my major game that I would not like to get released publicly.

  • It would be alot easier for the others to "check" you code, if you'd post the CAPX

    That IS ALL the code in that image.

    EDIT: Of the player, the other code is all GUI stuff etc.

  • Anyone?

  • Ashley

    Confirmed. The expression editor won't take an expression like

    "red"="red"

    It says "type mismatch, = does not work with 'integer' and 'string' (use & to build strings)"

    dcrew

    You can use a private variable to combine picking across events to do an "or".

    http://dl.dropbox.com/u/5426011/examples%208/or_example.capx

    Does no one understand what I asked for? I don't want multiple events, for example: take your capx and the event "Is animation 'Red' Playing?" rather than having it seperate I want: "Is animation 'Red' or 'Blue' or 'Green' or 'Purple' Playing?" for reasons I do not feel the need to explain. I'm happy to wait till Tom and Ashley fix this <img src="smileys/smiley1.gif" border="0" align="middle">

  • I just created some custom platform movement:

    <img src="http://screensnapr.com/e/Nb3huw.png" border="0" />

    And I wondered if anybody has any ideas for improvement?

    There seems to be some glitches like: I can slowly walk through the side of the "Block" object and when I'm fully in it then it slowly falls down.

    I know this is possible to do custom movement, I'm pretty damn sure (99%) that people do it in there 2D games all the time.

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • <center><img src="http://screensnapr.com/e/lcsHe1.png" border="0">

    <img src="http://screensnapr.com/e/oeGOPP.png" border="0">

    Follow us on Twitter http://twitter.com/#!/ddmtustudio

    or Visit our website http://planet-mogma.org/

    To play goto the website and click "Play Now!"

    Welcome to Planet Mogma!

    Play-able in HTML5!

    A world for exploration, and building!

    Features:

    • Exploration
    • Biomes
    • Rendering
    • Render Distance

    Biomes:

    • Summer
    • Desert
    • Jungle
    • Winter

    Banners!

    <img src="http://screensnapr.com/e/y2sntJ.png" border="0">

    <img src="http://screensnapr.com/e/z4lCR0.png" border="0">

    <img src="http://screensnapr.com/e/5bg1m4.png" border="0">

    A game by Dcrew

    Code - Dcrew

    Graphics - Dcrew</center>

  • Hmm, there might be an operator precedence bug - does this work?

    (Block.AnimationName = "block1") | (Block.AnimationName = "block3") | (Block.AnimationName = "block13") | (Block.AnimationName = "block14")

    nope.

  • Of course there is a conditional expression.

    Check this manual article.

    : is a conditional operator, which allows you to test conditions in expressions. This is especially useful when used with the comparison operators and logical operators. It takes the form condition ? result_if_true : result_if_false

    > e.g. health < 0 | score < 0 ? "Game over!" : "Keep going!".

    > The condition counts as true if it is non-zero, and false if it is zero.

    Also the bug Ashley talks about is probably not the OR condition as you expect it.

    Are you on topic here? I want to run the event IF the AnimationName of Block is any of the 4 following strings.

dcrew's avatar

dcrew

Member since 25 Sep, 2011

None one is following dcrew yet!

Trophy Case

  • 13-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

15/44
How to earn trophies