RTS back and forth movement

For questions about using Classic.

Post » Wed Jun 30, 2010 9:54 pm

There are also some things that you can use in expressions for each object/behavior that might not be obvious. The RTS behavior has X and Y destinations that you can read, for example. You can find these by selecting objects while in an expression entry.

As an example, you could pick any blue family member that is within 25 pixels of the carrier's intended destination and make it flash, like so:

+ Blue: Pick by distance(Carrier[RTS].DestX, Carrier[RTS].DestY, Blue.X, Blue.Y) < 25
-> Blue: Flash for 2 seconds with 0.25 seconds interval

It uses the 'Pick by expression' condition. Also, you can have each family member have a unique value in a 'type' private variable that will let you further identify or pick them. And there is a 'Pick nearest' condition for objects or families that you can use.
B
3
S
2
G
2
Posts: 187
Reputation: 1,449

Post » Wed Jun 30, 2010 11:07 pm

Very helpful stuff =D

I'm getting excited about this. Is there somewhere I can find out about more of the 'not-so-obvious' commands like the one you mentioned, Silent Cacophony?

I've made some modifications to my original plan, and things are looking much better.
B
3
G
2
Posts: 35
Reputation: 745

Post » Thu Jul 01, 2010 12:06 am

[quote="Zaaephod":34sonlv7]Is there somewhere I can find out about more of the 'not-so-obvious' commands like the one you mentioned, Silent Cacophony?[/quote:34sonlv7]

You may have to view the image separately to see it all:



You can get to most of them through the point and click interface, by double-clicking any of the objects at the bottom of the upper window. Sometimes you'll need to double-click an empty area if objects are missing there, which will bring up a new window containing all of them. Then, another window such as the lower one will open with your choices. Double-click one, and it will be inserted into the expression editor at the cursor. Sometimes you'll need to replace argument descriptors with your actual arguments.

I have to remind myself of these from time to time, by going through the different objects and seeing what they have available.

Also, the Wiki has two pages that I like on expressions, but they are not the easiest to find:

System Expressions - Expressions for the System object
Expressions - General info on expressions

Have fun!
B
3
S
2
G
2
Posts: 187
Reputation: 1,449

Post » Thu Jul 01, 2010 12:28 am

Very cool =D One last thing (yeah right!)

I'm having some trouble moving events around sometimes. For example, I have an event #12, it has 4 events in it, but I need to take one out, and make it only happen based on a new condition. I can't seem to pull the event out of the group of 4, why is this?
B
3
G
2
Posts: 35
Reputation: 745

Post » Thu Jul 01, 2010 12:57 am

I'm not sure... You can drag around entire events by grabbing the left edge of the box surrounding it. You should see everything in it get highlighted yellow, and as you drag it, look for a black line indicating where it will be moved to. You can use this method to move events so that they are sub-events and such, but it can be tricky getting the black line where you want it. Sometimes you have to keep moving the pointer around 'till you get it where you want it, then release the LMB.

Also, you can drag conditions and actions out of events into other events, but you can't make new events out of them. I'd guess that this may be your problem. In this case, I just insert a System->Always or something, delete the Always condition (leaving an empty event box,) and then drag the condition from the other event into the empty event box, then move that event wherever.

Note that I make the distinction between events, conditions, and actions. The events contain the conditions -> actions, and they can all be dragged around in different ways. Control-dragging (ctrl key + lmb drag) is another non-obvious way to duplicate events, conditions, and actions. There are probably other things I haven't discovered yet, though they may be on the wiki somewhere... ;)
B
3
S
2
G
2
Posts: 187
Reputation: 1,449

Post » Thu Jul 01, 2010 1:57 am

Excellent, I've figured out what was going on there. It was working as intended, just not as expected :wink:

Thanks again for all the help, I really appreciate it.

Z
B
3
G
2
Posts: 35
Reputation: 745

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests