Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Ubel

#681
Nope that didn't happen. As I said, it was just written like that in the text file when I pressed F4. I tried many times afterwards and always there was some primitive's information missing in the file.
#682
Thanks for clearing things up a bit, monkey. I didn't remember Random(20) could return 20, I thought it's just 0-19. :)
#683
Put the object's baseline below the walkbehind's baseline. That should solve it.
#684
You could do this by using arrays. First generate two new string arrays:

Code: ags

String Name[20];
String Surname[20];


These let you have 20 names and surnames. The next thing you will have to do is to define a name for each cell.

Code: ags

Name[0] = "Larry";
Name[1] = "Roger";
...
...

Surname[0] = "Laffer";
Surname[1] = "Wilco";
...
...


Now if you want the generator to choose the name and surname randomly, you'll have to do something like this:

Code: ags

String Fullname = String.Format("%s %s", Name[Random(20)], Surname[Random(20)]);


What I did was that I made a new string called Fullname, which I formatted to contain a randomly picked name and surname from the two lists. Now if you for example want to put the complete name into a GUI label, you'll just do:

Code: ags

lblMyLabel.Text = Fullname;


I hope this helps you. I suggest you to read more about these functions in the manual, if you're not already familiar with them. Just to understand them a bit better. :)
#685
Hey Steve. Today I finally got myself to try really using this thing to make something. Well, I followed the instructions in the readme file and made myself a nice little scene using primitives. But when I pressed F4 to write the scene into a .txt file, it only wrote this:

Quote
Ã,  int i;
Ã,  // index 0
Ã,  i = Ags3d_AddCube(0.0, -5.0, 0.0);
Ã,  // index 1
Ã,  i = Ags3d_AddCube(0.0, 50.0, 90.0);
Ã,  // index 2
Ã,  i = Ags3d_AddRoof(0.0, 150.0, 90.0);
Ã,  Ã,  Ags3d_SetPrimScale(i, 100.0, 100.0, 100.0);
Ã,  Ã,  Ags3d_SetPrimRotation(i, 0.0, 0.0, 0.0);
Ã,  Ã,  Ags3d_SetPrimColour(i, 255, 0, 0);
Ã,  Ã,  Ags3d_SetPrimFilter(i, Ags3d_Filter_All);
Ã,  // index 3
Ã,  i = Ags3d_AddCube(0.0, 45.0, 40.0);

So basically it left out some really important information about the scaling and positions of the primitives. I hope you will try to find a way to fix these problems because I really want to start learning to use this thing. :)
#686
Quote from: Petteri on Mon 10/07/2006 10:43:46
My votes for Canada or Caribbean, and somewhere that doesn't require tents. No campsites please!

I second!
#687
If there's still room I'd like to submit the best game ever made.

The Secret of Hamster Island. Which you can find here.

:=
#688
I ares back now! ._./ I haves no photos or videos! ._.// But Ishmael does have! Upload them already you lazy you!
#689
I just wanted to inform you that I have edited the first post adding quite a lot of new info into it. We've been working on this like hell for the past few days and are all very excited about it.

There's been a lot of progress in scripting and graphics especially. Visy even coded the first minigame and I've completed most of the GUIs. Inkoddi's paintbrush is on fire. So it's coming along nicely. :)
#690
I didn't finish my game either. For the first week I couldn't come up with any idea at all. And when I finally got the idea and started working on it, I became lazy and fed up on the project. Just like I do with any game project I start. ¬¬ I might finish it someday though.

Here's a screenshot of the game:


If you are interested, you can read a bit more about it on my website: http://www.pabsoft.com/games.html

Sorry.
#691
Haha, funny thing. Not long time ago I saw the demo of this game again and was wondering what happened to this project. I actually almost PMed you. I was worried that this game had died because you hadn't updated the Games In Production thread. I'm so glad I was wrong. I'll try this game tomorrow. :D
#692
Thanks guys. There's just one problem in this code. It doesn't work when I have "[" linebreaks in my string. And I have a lot of those, the game puts a linebreak in the string every time it adds text to it. Because then it won't remove just the first line, it can remove some characters from the line below too. And I'm not skilled enough to fix this. :)

EDIT:
Maybe it's best if I provide an example. Let's say I have a label that can show 3 rows. I have a string put into that label: "First row[Second[Third"
That would be displayed as:
Code: ags

First row
Second
Third


Now, I want to add this text "[Fourth[Fifth" to the same string. But the lines would not show in the label because the label is 3 rows high. So I'd need to remove enough rows from the top of the label so that the new lines would show in the label. Then the label would be like:
Code: ags

Third
Fourth
Fifth


This is basically what I'd want to do. I hope someone can give me some help here.
#693
Okay, so let's say I have a label with a long string in it. I want to remove a certain number of lines/rows from the top of the label. So I guess I need to know how long (in characters) the lines are so I can use Substring to remove the lines.

How could I do this, when the string changes a lot in the game and the characters in the font are not all the same size?

I need this kind of script because if the string gets too long (in this case 15 rows) I need to remove some rows from the top of the label so that more text can fit in.
#694
Thanks for all the tips guys, it's very appreciated! But I just solved the problem. I'm not really sure how though, and what the problem was. I borrowed a 17" TFT screen (I thought it might work because it supports so high resolutions), used it on my computer and it worked.

Then I realised the problem was never the resolution. I suspect I had somehow changed the monitor to work as the secondary screen. But as I don't have the options for supporting two screens turned on, the screen didn't show anything.

Apparently the reason for the TFT screen working was that I didn't put the wire in the same plug as the monitor was in. So it kind of worked as the main screen. Then I fiddled around with the screen settings a bit and it's working properly again.

I hope this makes some sense. Thanks guys, your suggestions helped me to get a little closer to the problem, little by little. :) And I didn't even have to touch the driver settings, yay. :D
#695
Oh yeah, I forgot to mention that I have tried that. I couldn't figure out the problem. :\
#696
Okay, so here's the deal. Last night I was happily scripting something with AGS, skyping with Ishmael, IRCing and doing the stuff I usually do. Well, then suddenly when I tried to press ALT+F4 to close a window, I think I accidently pressed some other buttons aswell, my monitor shut down.

I was very confused. The computer was still running, the monitor was still on, but the screen was black. The light in the down-right corner of the monitor was blinking which usually means the power of the PC is turned off. But it wasn't...

So I thought "Of course restarting the computer helps! It always does!". So I manually restarted it... but it didn't work. The screen worked perfectly when the computer was restarting, but as soon as Windows started, it shut down again.

My brother suspects that the resolution had somehow turned so high my monitor couldn't display it anymore. Does that make any sense? Anyone have any ideas on how to fix this situation? I'd really want to get my computer working again.

Oh, and if anyone's wondering, I'm using my laptop to send this message.
#697
My entry was valid before you changed the rules, you evil evil man! :'(
#698


Gothic enough?
#700
Please upload some real png files instead of just renaming a bmp file to png. Those screenies are helluva slow to load.

Yeah it looks nice. But of course graphics don't mean everything in adventure games. I hope the story, playability, puzzles etc. will be as good. Good luck!
SMF spam blocked by CleanTalk