The Daily Click ::. Forums ::. Klik Coding Help ::. Question with game- some pictures don't show up when it's "done"
 

Post Reply  Post Oekaki 
 

Posted By Message

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
15th September, 2005 at 13:19:08 -

Hey guys, sorry if this is an easy one, but I have a pretty decent game I made in MMF 1.5, and the only thing holding me back from release now is the fact that after I make the .exe and RUN it, the game works- but there are a LOT of visuals that aren't there! Now for example, say there was supposed to be trees in a forest, well, you can't move the guy through where they're supposed to be (like the trees were in fact there), but you can't SEE the trees. It's like the only things that show up on the gamescreen are backgrounds and active objects. All the other objects that I had to designate a path for at creation time don't work.

Any ideas on how I can fix this? The game is actually pretty good and when the pictures work, it looks good too. I want to put the puppy up, but can't like this!

Thank you!


 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Noyb



Registered
  31/05/2004
Points
  1117

VIP Member
15th September, 2005 at 17:17:21 -

Are the file paths hardcoded or are you using appdrive$ + appdir$ + "filename"? Are the picture files in the .exe's folder?

 
"Omg. Where did they get the idea to not use army guys? Are they taking drugs?" --Tim Schafer on originality in videogames

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
15th September, 2005 at 22:42:10 -

Okay, the problem is with the active picture objects. When you first place one down on the form, and you select the picture for it from "browse", it comes up with a hardcoded pathway. But is there anyway NOT to do this using MMF? As far as I can tell, it doesn't give you any other option when in the game making screen except to do it this way. And that is the problem too, because when I move the only copy of my game (the .exe itself) that works 100% to another location on my computer, the problem comes up again. Missing graphics, even though the actual active picture objects are still techincally "there". Your character can't move through them, it just looks like he's hitting a bunch of invisible walls.

With so many games up on the site from everyone, this must have happened to someone at least once before, right? How did you fix the problem? I tried to do App.Path (from what I know of it in VB6 anyway) and I kept getting "not relative" errors or something when I tried to re-save it.

How do you guys set up the pictures for your active picture objects?
It's frustrating, because it's the only thing holding this game back, and it's not playable with so many major components being invisible to the player.

Thank you!

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Jon Chambers



Registered
  25/08/2002
Points
  1071
16th September, 2005 at 05:20:42 -

Select the picture for it from browse? Did I miss a step here? I think I know you're problem. Instead of doing what you're supposed to do, you're doing something I wanna learn how to do.

Okay, the way you're supposed to handle a picture object, is double click it, click "file", select "import" and click "bitmap". Meanwhile, tell me how you did what you did.

 
Copy this to your hard drive. It will be worth alot when I'm famous.

Notice: Spelling mistakes above left in for people who need to correct others to make their life fulfilled.

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
16th September, 2005 at 20:38:21 -

"The... The game making screen? Did you just say that? "

Yeah, I said that. Fortunately my ideas are better than my terminology. When I learn more about MMF I'll try to use my knowledge to help others rather than try to be a big man and shoot them down. It's a lesson you learn when you're little, if you can't say something nice..

Okay now that that's out of the way, thanks Noyb and Jon for trying to help. Here's what I am doing exactly Jon:

In the project explorer window, I double-clicked on one of my active picture objects. When I did, a small window pops up that displays the object's properties.
Here is what it says exactly:

____ File ___________________________________________________
| _________|
| C:\MMFusion\Dave's Game\PIGGY\guys\PIG2.bmp |Browse |
| ---------|
|___________________________________________________________|
| Options |
| |
| [x] Picture Resize |
| (x) Fast |
| ( ) Resample |
| |
| |
| [x] Transparent Color |
| ( ) Black - RGB (0,0,0) |
| (x) First Pixel Color |
|___________________________________________________________|


This is the main window that popped up every time I went to load a picture into the
active picture object. And it works too, as long as the .exe and everything else stays exactly where they were when I made the game. By pressing the 'browse' button above, you can select which picture you want, but there's no way that I can see from this window to do anything else to permanently assign the picture to the active picture object, like you can with an active object or backdrop. If there was, I'd be all set and ready to roll! What do you think?

P.S: I tried to select and then do the edit --> import bitmap while the Active Picture Object was selected and I couldn't get it to work, which leads me to believe that this original pop-up window is the only option.

Thank you for your patience guys, it'll be worth it eventually!




 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
16th September, 2005 at 21:07:20 -

Others have said it but nobody really explained. What you are meant to do if you want Active pictures in your game is you are meant to click browse, then click use calculation on the right. In there type this:
appdrive$ + appdir$ + "filename"

Where filename is the name of the picture. Appdrive is the user's drive letter, appdir is the directory that the game is installed in. Eg:

appdrive$ + appdir$ + "cow.jpg"

would open something like:
C:\Andy\games\mygame\cow.jpg
on my computer.

And if you used:
appdrive$ + appdir$ + "data\cow.jpg"

Would open something like:
C:\Andy\games\mygame\data\cow.jpg
on my computer.

Make sure you include the picture in a zip file when you send your game to people.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
16th September, 2005 at 21:19:37 -

Awesome! I'm going to try it straight away!
Thanks Andy!


EDIT: IT WORKS! IT WORKS! IT WORKS! WOO HOO!

I don't have to wait until December now, LOL!


Image Edited by the Author.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!
   

Post Reply



 



Advertisement

Worth A Click