Gamestudio Links
Zorro Links
Newest Posts
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 (TedMar), 1,420 guests, and 3 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
chaging postion of panel #287766
09/02/09 13:01
09/02/09 13:01
Joined: Aug 2007
Posts: 157
England
DeD Offline OP
Member
DeD  Offline OP
Member

Joined: Aug 2007
Posts: 157
England
how do i change the postion of a panel.
when a enity move past another.


D.E.D

I use lite c
Re: chaging postion of panel [Re: DeD] #288010
09/03/09 16:06
09/03/09 16:06
Joined: Apr 2009
Posts: 27
Silicon Valley
D
Dillinger Offline
Newbie
Dillinger  Offline
Newbie
D

Joined: Apr 2009
Posts: 27
Silicon Valley
a bit vauge, but it sounds like you want to make it so the collision area is larger than the model. You can define that the old fashioned way, like in Pong. You know:

if ( ent_pos_X > panelLeftSide && ent_pos_X < panelRightSide
&& ent_pos_Y > panelTop && ent_pos_X < panelBottom )
{
panelName.pos_x = whatever ;
panelName.pos_y = whatever ;
}

OR

instead of a panel, you can use:
ent_create( "myImage.tga" , vector ( 400,0,0 ) , 0 ) ;

Now your bmap is an Entity with all the built in collision detection, etc.

Re: chaging postion of panel [Re: Dillinger] #288249
09/04/09 23:46
09/04/09 23:46
Joined: Aug 2007
Posts: 157
England
DeD Offline OP
Member
DeD  Offline OP
Member

Joined: Aug 2007
Posts: 157
England
its for the postion of a car. so the panel will change when a car is in 1st 2bd 3rd an 4th.

how do i tell the panel this?


D.E.D

I use lite c
Re: chaging postion of panel [Re: DeD] #288255
09/04/09 23:59
09/04/09 23:59
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
You mean like positions in a race? When a car overtakes another one you can just use Panel.pos_x/pos_y in a function.

Re: chaging postion of panel [Re: DJBMASTER] #288258
09/05/09 00:34
09/05/09 00:34
Joined: Aug 2007
Posts: 157
England
DeD Offline OP
Member
DeD  Offline OP
Member

Joined: Aug 2007
Posts: 157
England
yea i mean like that. i know how the panel moves but i dont know how to tell it to move when the car changes postion.


D.E.D

I use lite c
Re: chaging postion of panel [Re: DeD] #288263
09/05/09 02:04
09/05/09 02:04
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
ahh thats a completely different problem, you want to trigger a function when a car overtakes.

That will most likely involve some tracing/scanning to see what is infront of you. You can check out c_trace/c_scan for that.

Last edited by DJBMASTER; 09/05/09 02:04.

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