Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 900 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Huge Spheres #103765
12/23/06 14:00
12/23/06 14:00
Joined: Apr 2004
Posts: 258
Canada, Nova Scotia
Damarus Offline OP
Member
Damarus  Offline OP
Member

Joined: Apr 2004
Posts: 258
Canada, Nova Scotia
Hi all,

i have a short question does anyone have a code that makes spheres (or sky spheres) huge? I mean like really huge so you basicly almost never can reach the end. I had once a code like this but i lost it when i reset my computer. thx in advance.

Re: Huge Spheres [Re: Damarus] #103766
12/23/06 14:04
12/23/06 14:04
Joined: Aug 2004
Posts: 2,215
I
ISG Offline

Expert
ISG  Offline

Expert
I

Joined: Aug 2004
Posts: 2,215
Well, I can think of two solutions for such a thing.

1) scale.x and use the other scale syntax in C (look it up in the manual)
2) Make a script to attach to your sky sphere (if it is a model) that says something like:

Action Sky
{
my.x = player.x;
}

Just two ideas to try out that is.


Ground Tactics - Coming Soon
Ground Tactics OFFICIAL WEBSITE
Re: Huge Spheres [Re: ISG] #103767
12/23/06 14:10
12/23/06 14:10
Joined: Apr 2004
Posts: 258
Canada, Nova Scotia
Damarus Offline OP
Member
Damarus  Offline OP
Member

Joined: Apr 2004
Posts: 258
Canada, Nova Scotia
well first thx for your ideas but unfortunatley im not familiar with c script programming so i dont really know how to program something like this. But in that code that i had you could change the size of the mdl sphere by just changeing some numbers. Maybe you know how to program this. But thx again ill keep working on it.

Re: Huge Spheres [Re: Damarus] #103768
12/23/06 14:13
12/23/06 14:13
Joined: Aug 2004
Posts: 2,215
I
ISG Offline

Expert
ISG  Offline

Expert
I

Joined: Aug 2004
Posts: 2,215
Using either a function or action do something like this:

Action/Function Sky()
{
wait(1);
my.scale_x = 10;
my.scale_y = 10;
my.scale_z = 10;
}


Ground Tactics - Coming Soon
Ground Tactics OFFICIAL WEBSITE
Re: Huge Spheres [Re: ISG] #103769
12/23/06 14:18
12/23/06 14:18
Joined: Apr 2004
Posts: 258
Canada, Nova Scotia
Damarus Offline OP
Member
Damarus  Offline OP
Member

Joined: Apr 2004
Posts: 258
Canada, Nova Scotia
and this will change the size of the sphere? and should i attach this to my sphere?

Re: Huge Spheres [Re: Damarus] #103770
12/23/06 19:38
12/23/06 19:38
Joined: Dec 2005
Posts: 414
Munich, Germany
R
Robotronic Offline
Senior Member
Robotronic  Offline
Senior Member
R

Joined: Dec 2005
Posts: 414
Munich, Germany
You can also scale models in WED. Select them and right click will open context menue. Go to Object properties >> position. Here you can scale.

Re: Huge Spheres [Re: Damarus] #103771
12/23/06 20:09
12/23/06 20:09
Joined: Aug 2002
Posts: 572
Toronto
MadMark Offline
User
MadMark  Offline
User

Joined: Aug 2002
Posts: 572
Toronto
Hmmm, I am using the following code to make my sphere model "space globe" appear to be infinite space for my space shooter. It aint elegant, it doesn't resize anything, seems to work. I attach the action to the sky_sphere, which is basically a sphere with the normals flipped internally, and the skin painted on the inside. Maybe it will help you realize your goals?

Code:

action sky_follow_player // The sky sphere moves around the player at center.
{
my.bright = on; // Bright!
my.metal = on; // Shiny!
while (player == null) {wait (1);} // Wait for a player!
while (1) // Do forever
{
vec_set (my.pos, player.pos); // Use calculate sky position
wait (1); // Update every frame
}
}



Cheers!
Mark


People who live in glass houses shouldn't vacuum naked.
Re: Huge Spheres [Re: MadMark] #103772
12/23/06 22:14
12/23/06 22:14
Joined: Apr 2004
Posts: 258
Canada, Nova Scotia
Damarus Offline OP
Member
Damarus  Offline OP
Member

Joined: Apr 2004
Posts: 258
Canada, Nova Scotia
Thx alot everybody im gonna try it out tomorrow.


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1