Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
center on all res

 
Post new topic   Reply to topic Printable version
 View previous topic  Display? Post :: Post only one ship  View next topic  
Author Message
roof_tiles
Novice


Age:36
Gender:Gender:Male
Joined: Mar 07 2003
Posts: 94
Offline

PostPosted: Sun Mar 09, 2003 7:13 am    Post subject: center on all res Reply to topic Reply with quote

k now, i made a shroud thing but i want it to be centered..no matter what screen res the person is using..like if i make the image 1280x1024(max res) and set it up, when i move down res..the offset goes off center...

so like..can u set a coord amount in the lvz that depends on a users screen res..or do i need some kinda bot for this?
Back to top
View users profile Send private message Add User to Ignore List
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Sun Mar 09, 2003 8:00 am    Post subject: Reply to topic Reply with quote

From my upcoming LVZ-Tutorial:

Quote:
2.5.1 X and Y Position
Like the X and Y Position of mapobjects its defined in pixels.
But if you want, with one difference:
You can use the constant C.
C stands for center and indicates the center of the players screen.
i.e. C-146,29,IMAGE1,AfterChat,EnterZone,3000
This displays the object at the center-146pixel.
You don't need to use C, you can absolute coordinates if you want.


Tell me if u understood...
If you want ur picture to be centered... use:
C-<Picture.Width/2>,C-<Picture.height/2>

Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole....[/i]
Back to top
View users profile Send private message Add User to Ignore List
roof_tiles
Novice


Age:36
Gender:Gender:Male
Joined: Mar 07 2003
Posts: 94
Offline

PostPosted: Sun Mar 09, 2003 8:13 am    Post subject: strange Reply to topic Reply with quote

meh..it worked..u know i tried that before and mabey i put 2080 instead of 1280 :X i waste peoples time by accident..sorry.

anyway just to continue the questions and make this less of a pointless thread.

about mapobject tile positioning...
yeah yeah, so everyones told me [tile_coordinate]X16 = tile position in pixels.

and its completely logical and should work, seing as each tile is 16x16

and it works....sortov, but when the tile coors are more like 768x823 or something, the lvz image just dissapeard(so it seemed) then it appeared again in the top left..(as if it had looped across the game area and back to the start)..and this x16 business just kept screwing with me.

dont tell me i dunno how to use a calculator, or that im stupid..THIS REALLY HAPPENED!

its weird i know, just needed some thoughs on that.
could i be the compiler?
Back to top
View users profile Send private message Add User to Ignore List
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Sun Mar 09, 2003 8:23 am    Post subject: Reply to topic Reply with quote

768x823
=12288x13168
(just in case icon_wink.gif )

Maybe the object is to big to be displayed, but i doubt that somehow...

Use debuildlevel on the lvz, and check if it compiled the coords correctly. If not, use another compiler.

Otherwise, i don't know...

Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole....
Back to top
View users profile Send private message Add User to Ignore List
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sun Mar 09, 2003 12:09 pm    Post subject: Reply to topic Reply with quote

The first time you download some lvz with objects they won't appear correctly (transparency turns off) if you fly your ship so the object appears at the top left of your screen, just type ?go to reload the images. (I'm not sure if this is your problem but I'll post it anyway).
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Doggeti
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Jan 12 2003
Posts: 297
Location: Germany
Offline

PostPosted: Sun Mar 09, 2003 1:30 pm    Post subject: Reply to topic Reply with quote

Are the coders new_gmorning.gif informed about that bug grav_smokin.gif icon_question.gif
_________________
Expect the worst but hope for the best.
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
SuSE
Me measures good


Joined: Dec 02 2002
Posts: 2307
Offline

PostPosted: Sun Mar 09, 2003 2:34 pm    Post subject: Reply to topic Reply with quote

Bug?
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Doggeti
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Jan 12 2003
Posts: 297
Location: Germany
Offline

PostPosted: Mon Mar 10, 2003 8:43 am    Post subject: Reply to topic Reply with quote

Smong wrote:
The first time you download some lvz with objects they won't appear correctly ...


Sounds like a bug grav_smokin.gif for me.
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
SuSE
Me measures good


Joined: Dec 02 2002
Posts: 2307
Offline

PostPosted: Mon Mar 10, 2003 9:44 am    Post subject: Reply to topic Reply with quote

Could just be an unavoidable certainty.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
reel bad
Seasoned Helper


Age:38
Gender:Gender:Male
Joined: Dec 08 2002
Posts: 155
Location: MA
Offline

PostPosted: Mon Apr 14, 2003 9:27 pm    Post subject: Reply to topic Reply with quote

Akai wrote:
Could just be an unavoidable certainty.


= bug
Back to top
View users profile Send private message Add User to Ignore List Send email
SuSE
Me measures good


Joined: Dec 02 2002
Posts: 2307
Offline

PostPosted: Mon Apr 14, 2003 9:48 pm    Post subject: Reply to topic Reply with quote

bug: an unexpected defect, fault, flaw, or imperfection

only the programmer can say if it is a bug or not

has anyone even bothered to test this out besides roof?
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:41
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Mon Apr 14, 2003 11:05 pm    Post subject: Reply to topic Reply with quote

Known problem, has been 'fixed' for the last couple of releases, but everytime, some just won't reload correctly the first time its extracted. Hopefully, .38's 'fix' (won't extract, loads directly from .lvz) will permently fix it.
Back to top
View users profile Send private message Add User to Ignore List Send email
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> LVZ/LVL Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 60 page(s) served in previous 5 minutes.

phpBB Created this page in 0.679060 seconds : 36 queries executed (91.8%): GZIP compression disabled