lennaert's Recent Forum Activity

  • lennaert Pixel perfick thank you guys for help,it means alot.Im sure there are people that will hit the same walls im hitting so your help is always a great thing.

    One thing i would love to know how to do is implement JUMP in this 8 direction behaviour.Do you know how to make this happen?

    Sure, in my example, below the every tick, you could add any type of condition with a variable or on key press ... or, use your imagination.

    examples:

    A variable indicating speed could determine, if the "walk" animations should be done, or "run" if a certain speed is set.

    Pressing a certain key could indicate that the walk animation should not be used, but another, jump for instance.

    Another approach,is simply have 8 animations named animation0 to animation7. (instead of walk0 to walk7)

    And use

    jump up    - animation0

    jump right - animation1

    walk right - animation2

    right down - animation3

    duck       - animation4

    left down - animation5

    walk left - animation6

    jump left - animation7

    For jump ofc, you would need to implement some mchanic to get a jump going.

  • I had the same issues :(

    Most contrasting colors really make it look bad.

    I toyed around with size fonts and background colors to make it acceptable.

    Avoiding thin circle shapes fonts and using same tints, slightly dark, worked well for me.

  • Add 8 animations to Sprite which also has 8 dir motion

    walk0

    walk1

    walk2

    walk3

    walk4

    walk5

    walk6

    walk7

    These should each have the frames for the directional movement.

    Then: (simplistic approach)

    every tick

    sprite set animation:

    "walk"&ceil(8*(1+Sprite.8Direction.MovingAngle/360)-0.5)%8

    play from current frame

    Voila ....

  • We cannot do anything without steps to reproduce. If it really is "consistent as day and night" you should be able to provide a .capx with steps to reproduce. Without this information it is almost impossible for us to do anything towards fixing it.

    very true, but sadly for me and quite a few others, there is no consistent way to reproduce apart from working, doing and undoing edits ... seeing as soon as a save is done, a potential issue is avoided (at least for me) thusly unable to ever produce something that could hold the negative side effect.

    I am also not asking to directly look into the situation, as the problem is far from severe, seeing the methods to work with construct 2 already prevent most of the occuring issue (auto save and advice to save often).

    Perhaps its just something to take notice of, and shoud you run into something inconsistent with undoing, you have this to take into consideration if your pondering if it could cause an issue or not.

  • Could we use this technique over webpages accessing such cams ? for example, the xbox 360 kinect cam ?

    If that would be the case, there would already be a wide potential audience for such techniques, and then yes, I would definately give it a try :)

  • Neither of those behave the way I want ('Asteroids' style movement).

    You can tweak that car behaviour a lot, its default looks a lot what you made with the custom movement.

    Oh well, good luck :)

  • I just removed all your events, and tried with merely giving the sprite a car behavour or 8 direction behaviour, they both too slide along the wall, the 8 dir a bit less gracefull then the car behaviour, but thats related to the shape of your moving object.

  • I just checked yur capx, but its already doing what you said ...

    edit:

    hmm I did some test with your custom movement setup ... but its not reacting like expected ... dunno why.

  • euhh ... ok, bound by layout ?

  • Simple add the bullet behaviour too ... just make its speed like 0.001 or something and the bounce works :)

  • Adding/changing an HTML elemented related to styling or a link or image always appears at the bottom of your post. (while editing)

    Would be nice to have it get inserted where your cursor is.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you string returns like you show you could check for the commas also: ,7, which would not give any other numbers, like 17, 27, etc.

    find(yourText,",7,")

    will return > -1 if found (returns the index position)

    This one will do just what you need short and effective.

    the bit where the 7 is between commanas can be changed too

    needle = 7

    haystack = "1,2,3,4,5,6,7,8,10,17,27,"

    result = find(haystack,","&needle&",")

    result will be 0 (indicating it occured one)

    needle = 11

    haystack = "1,2,3,4,5,6,7,8,10,17,27,"

    result = find(haystack,","&needle&",")

    result will be -1

    needle = 1

    haystack = "1,2,3,4,1,5,6,7,8,10,1,17,27,"

    result = find(haystack, ","&needle&"," )

    result will be 2

    The provided codes adds the commas before and after, but this could be changed to suite your needs.

lennaert's avatar

lennaert

Early Adopter

Member since 8 Oct, 2013

Twitter
lennaert has 13 followers

Connect with lennaert

Trophy Case

  • 11-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
  • x5
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

25/44
How to earn trophies