DestroyActor("Event Actor");
leftappear=1;
bilvyy wrote:thank you for this (:
if there is an easier way with moveto then that would be great; i just didn't know how to use it and assumed it was the wrong option for what i wanted to achieve.
with this demo, when i try to enter the code
- Code: Select all
DestroyActor("Event Actor");
leftappear=1;
into the script editor, it always tells me there is an error, something to do with const int. i'm not sure what it is i need to fix.
again wrote:Ok you have to declare the variable leftappear . Do you know how to declare variables yet? I can explain if you need me too.
AnarchCassius wrote:I've modified blivvy's demo so it doesn't use variables but simply moves the player to near the paired door, similar to nthl0gik's method but with pair portals. This method is not the most efficient but very simple. You will need to remember which door leads to which and adjust the x and/or y values a bit for where you character should come out. The code should be pretty portable just make sure you change doorx to whatever the name of the actor your moving to is going to be.
nthl0gik wrote:i've decided to try my luck with the ye olde teleport demo.... if anyone would be interested ? enclosed with this post is the goods, enjoy! oh btw let me know if it doesn't work right. i've tested it for errors and everything seems to check out aight when in game mode, however, just in case let me know.
again wrote:Ok the make the view follow the actor.
Click on view
There is a selection that says parent click on the space to the right of parent.
Select the name of your charactor as your parent.
x=player.x-80
x = player.x - width/2;
y = player.y - height/2;
lcl wrote:For making the player alway be in the middle of view do this:
View - draw actor - script editor:
- Code: Select all
x = player.x - width/2;
y = player.y - height/2;
Now it will work without you needing to change any numbers at all!
lcl wrote:For making the player alway be in the middle of view do this:
View - draw actor - script editor:
- Code: Select all
x = player.x - width/2;
y = player.y - height/2;
Now it will work without you needing to change any numbers at all!
You see DestroyActor("Event Actor")
leftappear=1;
if(leftappear==1)
{
CreateActor("player","mage"[,(none),(none),0,0)
leftappear=0;
}
Users browsing this forum: No registered users and 1 guest