Community
SCI Programming => SCI Syntax Help => Topic started by: Doan Sephim on June 25, 2013, 11:16:32 AM
-
So props and Acts have a property where actors get stopped by them when walking into them and we know that "line" is at the base of the VIEW. My question is can I increase that "stopping" line to be not just a line, but more of a rectangle, obstructing actors from moving past them from right to left so easily?
Before you say just use a control line like Brian's tutorial recommends, please note that I want this object to be movable by the player, so static control lines won't suffice.
-
My only idea would be to implement a few more invisible/transparent views and place them a pixel above and below the actor/prop. Then when the view is moved, you'd have to move these views as well.
-
That is an interesting work around, but painful for heap space and not very elegant. I may just scrap the idea I was going to use for this, or more likely, truncate it a bit.
I wondered whether I could tinker with the prop class, but when I read that code it really hits me how little I understand the basic framework.
I'm sure I'll be back again with other burning questions (which is good because it means I'm working on the game) :)
-
Are you looking for the yStep property, by chance? I'm not sure I understand what you mean...
-
Actually, it occurred to me, that you probably want a base setter. There is actually an example of this (called NormalBase) in main.sc, so copy that and change it to suit your needs. Then activate it by setting the baseSetter property in your actor to point to it in your room's init.
The startRoom of the template game has this in it:
(if(== gTheSoundFX 11)
(send gEgo:baseSetter(NormalBase))
)
which you probably want to delete, since it may override your changes in this respect.