megatronx's Recent Forum Activity

  • As for the movement, it's not too difficult. Basically I use a "Collision" sprite, and on collisison with it I simply set my Global Movement Speed to 0. Because it's a custom movement, it works really well for both players and NPC's.

    Can you move player normally after it collides ? Isn't it easy to break?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Some advice from my own experience: Z-order every 2 or 3 ticks and only object that are on screen or within a distance. You wont notice it. You will have to Zorder all first, then set to front limbs and other parts that are suppose to be in front of parent objects. As for the amount of enemies on screen, just don't have to many of them on it, and try not to process them outside of the screen. But keep in mind that you can't do any transformations of pinned objects, so what i do, every second or less, i pin other parts of characters that are off screen, and when they come back on screen i unpin those and other events set them to their place. Loads of messing about really. I wish construct would have some tools to create entities from several objects. Anyway, it's doable. As for pathfinding, you have an option to create game on a grid, and use A*, but even the behavior shouldn't put too much pressure on the performance. You could switch between pathfinding and other movement behavior depending on circumstance.

    But here's what most annoying will be for ya, and that's collisions with solid environment. This is a nightmare right now for isometric games. Using any of available plugins will give you poor results: it will bounce your character or it will move it at nearest angle but at different speeds. So i created my own collision system, a long one, that checks offset. I only did that for player, but will have to figure out how to make it general now. This is the only way I could get normal resoults, making player

    I have also one for the pad, but that one is different. It was even harder to come up with

    And btw, someone generous could turn this in to a plugin, so we finally have something NORMAL for collisions.

    Also, if you want some distopian soundscapes, I'd can write some gritty, grainy tracks.

  • Thanks, but i'd just like to know how to do that condition, cause there is a way right?

  • I'd like to know too, so the random only picks the number once.

  • It wouldn't go in the condition, it would go in the action.

    Something like:

    for each in array

    -> object set opacity to (curx="r"|curx=1)=1 ?100 :0

    Well, ok, but I need it to be a condition, because then I need to add other actions.

  • You have to add For Each condition to your events.

  • | gets evaluated to either 1 or 0. 1 if either, or both are true, 0 if neither are true.

    It does not return the value that was evaluated. You set that up in the conditionals "?", and ":".

    So there's multiple parts.

    The conditional:

    statement ?value if true :else

    The or as a statment:

    (1=0|1=2)=0

    No its not js, it's the dummied down version of parts of js.

    Sorry. I'm not sure how I should go about it. I'd like to turn those conditions in to one condition per image:

    or

    Could you give me example based on those?

    Thanks

  • bump

  • Its a conditional. It tests if a statement is true, and says what to do if it's true (?), and what to do if it's not(:)

    1=1 ?set x to 9 :set x to 2

    Since 1 is equal to 1 it would do whatever follows the question mark.

    If it wasn't it would set it to whatever was after the colon.

    Ok. So you are saying I should add brackets? I don't need that part after ? at this point although I do use it sometimes.

  • I'd hold off until the new C3 runtime, and sdk comes out.

    There's new engine expected for c3?

  • I use a lot of families that keep behaviors and variables, but those stop me now from adding certain objects from different family, to a new family with which they'd share common actions.

  • More like:

    (x=a|x=b)=1 ?foo :foo2

    It returns a Boolean.

    What's foo? Function?

    Could you expand your example? Just bit confused. Atm I want to check weather a value at current X and Y is = A or B. Then I want to follow with actions. But I'm open to learning more too.

megatronx's avatar

megatronx

Member since 25 Sep, 2008

Twitter
megatronx has 1 followers

Connect with megatronx

Trophy Case

  • 16-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

23/44
How to earn trophies