Staredit Network

Staredit Network -> UMS Assistance -> Screen Movement
Report, edit, etc...Posted by O)FaRTy1billion on 2006-08-12 at 03:31:37
I have a 96x96 map. In the center of this map is a 30x30 area. (32x32 including the border).
I want the players to move the screen around freely in this 32x32 area, but when they scroll past the border they go back into the square, but without going to an exact X,Y position. (E.g.: They scroll past the left side, they are still in the same Y position, but changed X position to make them back into the square.)
(If you need me to explain this more, I could probably think of something better..)

I tried using EUD Actions, it works really well.. except setting the Y position would crash.
I also tried making a really big location that was centered on your marine (the largeness of it would make it hit the border and always have the center of the location inside the square) and used EUD Conditions to detect if you left the square and center at that location. It was annoying because if your marine was on the bottom and you scrolled past the top, you ended up at the bottom.

Any other ideas? I want it so you cannot see past the border. And it would be kinda stupid saying "WARNING: DO NOT SCROLL PAST THE TOP OF THE SCREEN OR YOU WILL CRASH!"
Report, edit, etc...Posted by dumbducky on 2006-08-12 at 10:19:24
Center Location on the center of the area. Use EUD conditions to detect if they go out.
Report, edit, etc...Posted by Zodiac on 2006-08-12 at 10:48:13
I thought of something that doesn't require EUDs ermm.gif

But this would have to be done with a unit...

That would need 1 location per player which will be: "ScourgeLoc 1" in this case.
And another location that I will call "32x32" to put in the center of your map.

I hope you use Starforge. :S



Bring(current player, atleast, 1, scourge, 32x32);

movelocation(ScourgeLoc 1, scourge, current player, anywhere);
preservetrigger();
comment("ScourgeLoc: P1");

---

Command(current player, atleast, 1, scourge);
Bring(current player, exactly, 0, scourge, 32x32);

moveunits(all, scourge, current player, anywhere, ScourgeLoc 1);
preservetrigger();
comment("Border");

---

And the most important one:

Whatever();

Centerview(ScourgeLoc 1, current player);
preservetrigger();
comment("Center View P1");



With Hyper triggers, should do pretty fine.
I don't know if you'll like my idea though... it sure would be better to use EUDs. At least I gave it a try.

Edit: EDITED
Report, edit, etc...Posted by fritfrat(U) on 2006-08-12 at 11:07:08
I have to ask.. why don't you want the players to see the edge of the map?

I have an alternative to zodiac's method that does not have zerglings in it but accomplishes the same thing, if you're interested in that, but I'm not sure if you are.

It really isn't possible without EUD conditions, and EUDs often get scrambled with every patch.. up to you if you want to use them, though.
Report, edit, etc...Posted by Zodiac on 2006-08-12 at 13:53:31
Oh well, that was pretty dumb of me. blushing.gif

I edited my last post, now makes much more sense.

Just make sure that the 32x32 area are the limits as the center of player's sight. Since what you can let your players see is 32x32, since we can normally see 20x12; A 12x20 location should be appropriate, no?
Report, edit, etc...Posted by MoonlighTurtle on 2006-08-12 at 14:00:22
I believe for what he's asking, EUD conditions cannot be avoided. From what I understand he has the marine independent of the screen scrolling, as in, your screen does not have to be constantly centered on the marine. Therefore any methods not involving EUDs will not work, because they will be focusing on the location of the marine and not the screen.
Report, edit, etc...Posted by Mightybass101 on 2006-08-12 at 14:14:38
First why make it extra big in the first place?
secondMake it crash their computer if they leave the zone...maby give them 1 warning first though
Report, edit, etc...Posted by PCFredZ on 2006-08-12 at 14:42:01
Farty, what's making the areas outside the 30x30 crash? Are you sure that you can't just fix that instead?

Besides, what if someone clicks outside in the minimap? Looks like it would still crash.
Report, edit, etc...Posted by O)FaRTy1billion on 2006-08-12 at 20:51:07
Its only if you press "Up" after the game starts.
With the EUD Actions, the game starts centered on a corner (where I put the start location), so it moved the X and Y to fit in. It worked great, but accidentally pressing "Up" again will crash. If you scroll down past the bottom, it will move you back in the square once. Going down again will crash.

It seems to me like the Y axis is always a bit unstable.. Like if you make a small map (like 1x6) you can scroll all over. Scrolling to the right works just fine.. going down crashes (if you go too far). Going to the right enough to make the screen touch the bottom crashes... (Its sorta unrelated.. but it still involves going up or down crashing tongue.gif)

Another problem with EUD Actions is you would need to downgrade SC to 1.12b to play the map (I'm sure thats not a problem for modders wink.gif), and I am not exactly sure how much SEN supports (or not) them since they were patched.

EDIT:
hmm.. Using a scourge to center the screen, and move the location onto the scourge if your screen position is within the area might work. But then it would be annoying to have to go and move it to your Marine, or move two units to get anywhere.

QUOTE(Zodiak)
I hope you use Starforge. :S
Yes I do. tongue.gif How else would I be doing EUDs anyways?


ADDITION:
QUOTE(Mightybass101 @ Aug 12 2006, 12:14 PM)
secondMake it crash their computer if they leave the zone...maby give them 1 warning first though

I don't want it to crash in the first place, thats the problem I am having.
Report, edit, etc...Posted by Tuxedo Templar on 2006-08-15 at 16:05:56
For practical, non-mod/EUD solutions, you can either control for the vision by holding it onto a unit, or implement a system to shift the player's view by selecting options via. hotkey (like with a starport, barracks, or simply unloading from a transport or something to that effect).

That's the only way you have to control where it goes.
Next Page (1)