lennaert's Recent Forum Activity

  • Without a capx or examples, I doubt anyone can.

  • Without examples, or references, that is very hard to determine.

  • set angle to angle + (RAINBOWSPEED * dt)

    you will likely have to increase your rainbow speed variable though

  • In the project properties there is a "first layout" which you can have indicate that after export it will default start up with.

    During development with the previewer, if you hit F5 or preview, it will start up the layout with focus, or the last layout that had focus.

  • How about making the peer objects global ?, and destroy them when a player leaves/disconnects, and hide the peer in menu screens. (if needed)

    Solves a lot of creation issues

  • The peer its targetx , targety are not known on the host, nor synched, nor transmitted.

    Hence the host never fires the events for peer related movement in event 75.

    I would try and add a mouse button clicked (getbit on host's end) to grab the current lookx and looky and set those as targetx and targety. (would prevent synching more variables)

    Also, the movement related bit on event 75 is run under a Multiplayer.MyID, that will never fire on the hosts end for other peers, it would need to be in a loop for all peers and host.

  • [ > any .capx to understand better ? thanks > I forgot it after I saw it the first time, I had another example of something similar with a platformer going round in loops with layouts. But I made a small new one to show.

    demo

    capx

    I used red circles as images, but they could all be separate images of a larger image placed strategically on the right corners.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Look at the standard RTS example template, in there is exactly what you need.

    It has group movement with pathfinding. Even has a nice trick to slow speed when getting close to one ahead.

  • The video looks very good, and impressive to see space sim and ground force rts game play combined.

    Would be nice to see and play a demo

  • Should be:

    for 0 to array.width-1

    Redundant ... it would not have been > 0 anyways

  • ninja'd but here we go:

    global number highest=0
    
    +----------------------+
    |                      | set highest to array.at(0)
    +----------------------+
       +-------------------+
       | array: for each x | set highest to max(highest, array.curValue)
       +-------------------+
    [/code:2svqpcd9]
    

    fancy

    I'm always fumbling with the build in array options :\ and tend to use:

    var = 0

    for 0 to array.width

    (compare 2 values) array.at(loopindex) > var set var array.at(loopindex)

  • use local var = 0

    loop through the values in the array

    if array value > local var set local var = array value

    local var will have highest value from array

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