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
1 registered members (TipmyPip), 18,546 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
Page 1 of 2 1 2
Path/KH Controls/Jumping #371465
05/21/11 15:15
05/21/11 15:15
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
I need help with 3 things:

1st: Path/folders, I have used
Code:
#define PRAGMA_PATH "%EXE_DIR%\images\"

but it isnt able to find the .png files inside the folder unless they are in the root.

2nd: KH Controls, how exactly do you use them? I have copied the code to player.c, main.c, enemy.c & animation.c but it doesnt really ask for a model or move or do anything.

3rd: I need help making my character jump

Re: Path/KH Controls/Jumping [Re: JakeBilbe] #371468
05/21/11 15:18
05/21/11 15:18
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
for paths:
Code:
#define PRAGMA_PATH "folder name"




Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Path/KH Controls/Jumping [Re: 3run] #371469
05/21/11 15:32
05/21/11 15:32
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
Originally Posted By: 3run
for paths:
Code:
#define PRAGMA_PATH "folder name"




What do I put for the file though? I have tried as it was and also
Code:
PANEL* pLogo = { bmap = "/images/vertical.png" ;}

but it doesnt seem to find it either.

Re: Path/KH Controls/Jumping [Re: JakeBilbe] #371472
05/21/11 15:34
05/21/11 15:34
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
I don't know if "png" supported, anyway you should do like this:
PANEL* plogo = { bmap = "vertical.png"; }


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Path/KH Controls/Jumping [Re: 3run] #371473
05/21/11 15:35
05/21/11 15:35
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
When the png file is in the root it works fine, but I just tried again like you said and it doesnt work, how do I define the folder? is it "images" or "\images\"?

Re: Path/KH Controls/Jumping [Re: JakeBilbe] #371486
05/21/11 17:40
05/21/11 17:40
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
This one works, tested!
Code:
#define PRAGMA_PATH "images"

BMAP* temp_tga = "temp.tga"

PANEL* temp_pan = 
{
	bmap = temp_tga;
}




Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Path/KH Controls/Jumping [Re: 3run] #371499
05/21/11 19:08
05/21/11 19:08
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
Nope still not working for me, guess I will have to figure it out at a later date or something thanks anyways.

Re: Path/KH Controls/Jumping [Re: JakeBilbe] #371500
05/21/11 19:11
05/21/11 19:11
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
Did you try to use other than "png" format?


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Path/KH Controls/Jumping [Re: JakeBilbe] #371503
05/21/11 19:34
05/21/11 19:34
Joined: Sep 2009
Posts: 1,032
Budapest
Aku_Aku Offline
Serious User
Aku_Aku  Offline
Serious User

Joined: Sep 2009
Posts: 1,032
Budapest
Try with double backslash
Code:
#define PRAGMA_PATH "%EXE_DIR%\\images"



Last edited by Aku_Aku; 05/21/11 19:34.
Re: Path/KH Controls/Jumping [Re: Aku_Aku] #371611
05/23/11 11:24
05/23/11 11:24
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
I have tried PNG/JPG/BMP I would prefer JPG or PNG because of the resolution but I have tried all on this page and I just get the same error "Cant open vertical.xxx"

I have 3 images that start up, a hud that for now is just a layout design, 3 models and a level and some other stuff that I would like to put into folders and just have the .c files in the root but nothing seems to be working.

Last edited by JakeBilbe; 05/23/11 11:27.
Page 1 of 2 1 2

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