Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Quad, VoroneTZ, 1 invisible), 852 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
simple questions!! #458137
02/20/16 20:17
02/20/16 20:17
Joined: Jul 2012
Posts: 45
G
Gino_Fabrizio Offline OP
Newbie
Gino_Fabrizio  Offline OP
Newbie
G

Joined: Jul 2012
Posts: 45
Hi there! I have 3 simple questions:

1) How to make a panel full screen, independent of the picture size

2) How to calculate traveled distance of the player in 1 frame

3) How to display long or int values in text_draw??

thanks in advance!

Re: simple questions!! [Re: Gino_Fabrizio] #458138
02/20/16 20:26
02/20/16 20:26
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Hi!

1.)
panel.scale_x=screen_size.x/bmap_width(panel.bmap);
-> the same for scale_y

2.)
distance = 0;
distance = c_move(blabla);

3.)
str_for_num(NULL,var);


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: simple questions!! [Re: alibaba] #458139
02/20/16 20:40
02/20/16 20:40
Joined: Jul 2012
Posts: 45
G
Gino_Fabrizio Offline OP
Newbie
Gino_Fabrizio  Offline OP
Newbie
G

Joined: Jul 2012
Posts: 45
I get error on the panel size:

scale_x = screen.size_x / bmap_width(scary_png);

MAIN.C 3:2(): Number syntax screen_size.x

and same for Y frown

Last edited by Gino_Fabrizio; 02/20/16 20:40.
Re: simple questions!! [Re: Gino_Fabrizio] #458140
02/20/16 20:56
02/20/16 20:56
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
I'd like to refer to the manual


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: simple questions!! [Re: alibaba] #458281
03/02/16 17:07
03/02/16 17:07
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 868
Chicago, IL
screen_size.x not screen.size_x I think...


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

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