Ask something - We can help.

Started by Stupot, Fri 19/12/2008 20:06:21

Previous topic - Next topic

m0ds

Thanks Anian, I'll give that a go a bit later on today!

Calin Leafshade

Quote from: Mati256 on Sun 03/06/2012 02:43:32
A while ago somebody posted a website where you could choose a color and the site would show you some colors that combined with it.
Do you know which site I'm talking about?
Thank you.

For all your colour scheme needs i suggest kuler.adobe.com

EchosofNezhyt

Nice find calin. Bookmark'd

Mati256

Thank you Calin! That's the one!
My Blog! (En Español)

EchosofNezhyt

#1044
Edit: Whoops didn't see this wasn't in there.

What are some of the gameplay factors that make a adventure game good?

Andail


Tuomas

Hey,

I don't suppose any of you know a good way of finding out (quickly) which of my audio files are corrupt and which ones not? It seems, that when my computer broke down, not only did I lose 30% of my files, but thatthe ones I had backupped seem to be corrupted in one way or another now that I transferred them from my external HD to my new laptop. What happens is that, well, Winamp has a lot of difficulties playing some tracks, all being just plain mp3. The sound it makes is like a cd jumping from one place to another, and playing the same song from random positions. At the same time some songs just don't play.

I'd just like to make some inventory, fixing them is not necessary, although might be nice. After all, I've got everything on CDs, but ripping them on my laptop is such a bore.

Anyway, thanks.

EchosofNezhyt

You could open them all in vlc player and the ones that don't work hit skip and mark it down.

Other then that if it still plays the sound but its garbled I don't think there would be a program to detect that.

BCJames

Alright, I'm new. Which may or may not be obvious to forum regulars. So I'm am trying to get a handle on the rules of the board, and I realize I will eventually figure most stuff out by reading and paying attention, but that takes too long. The FAQ's are blank, so is there a place for me to read about the forum's rules regarding avatars and signatures and stuff like that so I have a better understanding before I do something and get blasted for it?

TIA!

Tuomas

I suppose all you'd need is to go to the profile editor, where it tells you the maximum sizes and such of signatures and/or avatars. Other than that I don't think we can require more than common sense in the "content" of whatever you choose as your signature or avatar. About a special place for those rules, I can't help you, sry.

EchosofNezhyt

Quote from: BCJames on Thu 12/07/2012 13:14:58
Alright, I'm new. Which may or may not be obvious to forum regulars. So I'm am trying to get a handle on the rules of the board, and I realize I will eventually figure most stuff out by reading and paying attention, but that takes too long. The FAQ's are blank, so is there a place for me to read about the forum's rules regarding avatars and signatures and stuff like that so I have a better understanding before I do something and get blasted for it?

TIA!

Not sure. But size don't matter(TeeHee) because it will auto resize anything to big, Sig wise if your image or text is to big it will crop it.
I'd avoid porn or racist stuff though.

InCreator

math question time!

How do I make a variable that has oscillating value? I mean, going up and down in some range.
I want to use it to offset sprite on y-axis, making it - say - float like a boat (up and down) in the range of 10 pixels.

I can easily do this the "hard way", but I imagine it can be done with sin function, using only a code line or two.
But three math teachers I had - none of them managed to explain understandably what sinusoid does.

This is where I got, thanks to wikipedia

y += 10*sin(time)
where time is abstract value I increase over CPU cycles. But it doesn't return to starting position and feels like a broken loop :(

Any help with this? If possible, also how to speed up or slow it down?


ThreeOhFour

#1052
I'd be interested to know this too. My familiarity with the sin function ends with what Leafshade taught me one day, where you can do that sort of thing like this:

Code: ags

float yval = 100.0;
int objecty;
float sinner = 1.0;

function repeatedly_execute_always()
{
  yval = Maths.Sin(sinner)+yval;
  objecty = FloatToInt(yval, eRoundNearest);
  object[2].Y = objecty;
  sinner++;
}


But he probably wrote it more elegantly than this. This might be a decent (if somewhat awkward) starting point, though.

Edit: remembered what the hell a sine wave actually looked like and realized I had 5 lines of unneeded code in there :P

InCreator

#1053
I think I got it!
Pseudocode:

y += 10*sin(.2*step);

Where step increases by 30 per second (my frame rate) or 1 per cycle, and 0.2 controls speed.
Loop breaking problem happened because I didn't want to overflow step value and reset it at some point.
But resetting to 0 at some astronomical number such as 2592000 (time until 1 day has passed) basically eliminates broken loop, because nobody plays a game 24 hours straight...
and even if so, a sprite making a tiny jump once a day isn't even noticeable.

Calin Leafshade

#1054
sine always returns a value between -1 and 1 like this:
Link

more generally and in terms of AGS you can get an oscillation like this:

Code: AGS

float step;

function repex()
{
    float osc = A * Maths.Sin(F * step);
    step += 360.0 / IntToFloat(Game.GetGameSpeed());
    if (step > 360.0) step -= 360.0;
}

 

Untested but that should give you an oscillating value with an amp (A) and freq (F)

selmiak

when pixeling in Photoshop, how do you set the erasor tool to 1px by 1px 100% opaque?
I tried making a custom brush and even that erases only with like 60% opacity :P

DoorKnobHandle

Size 1, Mode Pencil (this one is important), Opacity and Flow 100%. This works on any new Photoshop, tested in CS4 and CS5.

selmiak

#1057
how do you set the erasor tool to the pencil brush? How is the pencil brush set called? I only have a square brush set that comes close to the pencil brushes and that also erases with some low opacity left and I have to double click to 100% erase a pixel.

btw, by now I always use the selection tool in a 1x1 px size to erase pixels, I figured there might be a better way.

DoorKnobHandle



If that isn't there, you're probably using an outdated Photoshop version in which case I can't help you because I updated a LONG time ago! :)

selmiak

wohah, of course it is there, dkh, I love you <3 :D

SMF spam blocked by CleanTalk