Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Moving a Panel #316949
03/28/10 01:12
03/28/10 01:12
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline OP
Serious User
Liamissimo  Offline OP
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
Is there a possibility to move a panel like with c_move? I want to try sth in 2D but I havnt found a solution for that right now.

Thanks

Liam


"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Re: Moving a Panel [Re: Liamissimo] #316951
03/28/10 01:18
03/28/10 01:18
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
directly change pos_x and pos_y

my_panel.pos_x += 10*key_w*time_step;


3333333333
Re: Moving a Panel [Re: Quad] #316953
03/28/10 01:39
03/28/10 01:39
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline OP
Serious User
Liamissimo  Offline OP
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
And how to move with an relative vector. Because in c move there is a mode for that. And how can I rotate my bitmap? Becuase if I change the angle var it rotates fro the upper left corner of the picture which isnt useful, it doesnt rotate from the middle. I'll try to do sth in MED. Sorry for those questions so late in the evening grin

Last edited by TheLiam; 03/28/10 01:49.

"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Re: Moving a Panel [Re: Liamissimo] #316954
03/28/10 02:15
03/28/10 02:15
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
it is like 5:15AM it is more like morning grin

you have to write the relative moving function yourself which is not very hard. you can set rotation center by setting center_x center_y, check manual


3333333333
Re: Moving a Panel [Re: Quad] #316965
03/28/10 09:53
03/28/10 09:53
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline OP
Serious User
Liamissimo  Offline OP
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
Thanks for your help, eversything worked. can you give mejust a little tip how to move a panel relativ to its angle? I am going crazy over it grin


"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Re: Moving a Panel [Re: Liamissimo] #316975
03/28/10 11:24
03/28/10 11:24
Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67"...
hopfel Offline
User
hopfel  Offline
User

Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67"...
Use Trigonometrie. (Is it the right word in English?)

Like this:

panel.pos_y+=sin(panel.angle)*time_step;
panel.pos_x+=cos(panel.angle)*time_step;


Hilf mir, dir zu helfen!
Re: Moving a Panel [Re: hopfel] #316982
03/28/10 13:12
03/28/10 13:12
Joined: Mar 2009
Posts: 11
-
T
tehVolcano Offline
Newbie
tehVolcano  Offline
Newbie
T

Joined: Mar 2009
Posts: 11
-
Yeah, do what hopfel said... That will work.


Gamestudio A7 Pro
Re: Moving a Panel [Re: tehVolcano] #317008
03/28/10 16:04
03/28/10 16:04
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline OP
Serious User
Liamissimo  Offline OP
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
Yess, thank you. I am now going to learn things like sinus and trigonometry grin


"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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