How can I jump to another place in my frame?
For example, my frame is 2500 x 2500 and the playarea is 800 x 600. And if the player leave that screen, it jump or scrolls to next place in the frame. It's hard to explain, but hope you understand me.![]()
How can I jump to another place in my frame?
For example, my frame is 2500 x 2500 and the playarea is 800 x 600. And if the player leave that screen, it jump or scrolls to next place in the frame. It's hard to explain, but hope you understand me.![]()
make 2 global values, xscreen and yscreen.
When you want to move screen, change these values to the center of the area you want.
+Always
-- Center X position on 'xscreen'
-- Center Y position on 'yscreen'
Ok, but this is jumping or scrolling to another place in frame 1.
Clobal Values is between frames? Or am I wrong?









Global Values can be used for anything, including teleporting in the current frame. The suggestion made by bigredron is good.
Marv
458 TGF to CTF 2.5+ Examples and games
http://www.castles-of-britain.com/mmf2examples.htm
Hmmm, I can't get it to work. Can someone post an example here?


* X("Player") > X Right Frame
* X("Player") < X Left Frame
* Y("Player") > Y Bottom Frame
* Y("Player") < Y Top Frame
or some other conditions...
- Set Global Value A to (Whatever is on the right, lets say LeftX Left Frame - (X Right Frame + X Left Frame)/2
- Set Global Value B to (Whatever is on the right, lets say Top Y) Y Top Frame - (Y Bottom Frame + Y Top Frame)/2
* Always
- Set Horizontal position in frame to Global Value A
- Set Vertical position in frame to Global Value B
Give me a break if I made a mistake. Bedtime!
Are you asking for a screen/room transition example, where it auto scrolls to the next room?
Yea, there are several ways of doing this. I think one of my games/examples use this. I just went with invisible object detectors at the side of the rooms so that the effects don't trigger when I don't want them to, and use them when I want to.
As long as you are using X Left Frame & X Right Frame properly, saving the numbers, anything should work for you.![]()
You are talking about room to room, right? Where when the player touches the edge of the screen it jumps over or up or whatever automatically? Kind of like scrollling, but it takes one big leap to another area without changing frames? If so I have a good example from Popcorn. It uses two counters and one eventI'll attach it, but someone will have to tell me how...I dunno. If you give credit thank Popcorn. I'll edit it so it works with 800x600 window size.









Hi Berlioz. You can use the File Manager in the File Archives, or just give the link, here, for the file.
Marv
458 TGF to CTF 2.5+ Examples and games
http://www.castles-of-britain.com/mmf2examples.htm