Steven's Forum Posts

  • I doubt it is the variables. Might be the for each if they are checking collisions.

    What is the group controlling?

  • How would you play the animations? All handled in your plug in?

  • Just wondering if anyone knows why the cell sizes in the RTS behaviour are not power of two dimensions, 16x16, 32x32, 64x64 etc

  • The main problems with animation are-

    -Your triggers are wrong/events in general- double check they are not being constantly set etc.

    -The animation is not set to loop. Or the other various animation options, looping to the wrong frame, speed too high, speed too low.

    If you cannot find the issue post a cap and I will take a look at it for you.

  • Would you mind going over a few points of how to made the AI? I am working on a top down game at the moment and am a little unsure how to proceed when it comes to path finding etc.

    I liked the demo there, but the mouse control is awful. It was really hard to follow the battle as I was fighting with the mouse! The chaps seem to also be seeing each other through walls, particularly the angled sprites.

  • The approach I use is to have a private variable for the menu, which is toggled with the key.

    on key enter pressed - set object.value('menu') to 1 - object.value('menu')

    Now with this you can have event stacked under each value.

    object.value('menu') = 0

            -make box invisible

            -enable player movement

            -disable mouse

            -disable mouse

            -disable menu events

            -disable etc

    object.value('menu') = 1

            -make box visible

            -disable player movement

            -enable mouse

            -run menu events

            -etc

    I actually made an example of this the other day

    dl.dropbox.com/u/1487524/Scirra/setPositionMenuExample.cap

  • With offsets you will become more adept at figuring it out on the fly, placing an object, running to see if it is in the right place, adjusting etc. The debug menu also has a sprites position relative to 0,0 which might help you also. Grab the Tiledbackground texture from the cap, and place it down on your background, each square is 32x32 so you will have a good idea where you are at right away.

    Clamp is awesome, it really simplified a lot things for me. Quazi or his brother introduced clamp to me somewhere a long the way, and once you find it, you will find a lot of places to use it.

    Clamp(a, b, c)

    a is where the value changes. b is where the bottom limit of the change to value a, c is the upper limit of the change to value a.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I certainly like what you have got so far Newt.

  • It seemed to work fine for me chap. When you type Global(' It should show a drop down of the available global variables, press up/down and enter to select one and finish off the ').

    Also, what version of construct are you working in? I am using r1.2.

  • This is what I was referring to Sved.

    youtube.com/watch

  • Unfortunately, as far as I know, there is no actual function to use graphics in the layout editor from other layouts, despite the tick box to "show non layout objects".

    You will need to copy and paste one of each thing you want onto the layout. You can copy multiple objects at once, and it might be a good idea to look into grouping like graphics into single sprites, using the 'start frame' feature, to organise things a bit better.

  • What specific departments do you feel photoshop lacks in DravenX?

  • "There has to be at least one instance of a object in a layout for it to be visible in the event sheet. "

    This is not the case. It IS possible to create elements from other layouts without them being in the current layout. You just need to create a new event sheet.

  • What are you trying to achieve? It is hard to visualise what you are asking.

  • Bugs me that the object list doesn't show objects from other layouts too.

    The other thing you are asking about, creating objects at run time, that is entirely possible, but there are situations that they don't show up in the event editor. Sometimes layout order plays into this, maybe even event sheet order.

    Try putting the objects into a layout near to the top of the layout stack, and make a new event sheet, they should show up.

    If all else fails, copy the object from where you have it to the layout you want the event to work in(because the object window doesn't show anything but what is on the current layout, no matter what the setting is) create your events, and then delete the object out of the layout.