Recent posts by player_03 on Kongregate

Flag Post

Topic: Game Programming / Platform Game. (Hit test theory)

Originally posted by moynzy:

The problem is that my bitmap has slopes and other things so it wouldn’t work since the code would dictate sir timmy to walk in a straight line.

Anyways, I think there’s no solution for my problem.

Sure there is! And that solution is more math. Let’s say you had a 45 degree slope, from the top left to the bottom right:

if(character.y - slopedGround.y > character.x - slopedGround.x) {
	character.y = character.x - slopedGround.x + slopedGround.y;
	touchingGround = true;
}

Now arbitrary slopes:

/**
 * @param pointOnGround Any point along the surface of the ground.
 * @param slope Rise over run.
 */
private function testSlope(character:DisplayObject, pointOnGround:Point, slope:Number):void {
	var groundY:Number = pointOnGround.y + slope * (character.x - pointOnGround.x);
	
	if(character.y > groundY) {
		character.y = groundY;
		touchingGround = true;
	}
}

For more complicated shapes, there’s more complicated math.

 
Flag Post

Topic: Game Programming / Platform Game. (Hit test theory)

Something like that. You’ll also need to check the character’s x coordinate, but the important thing is that you could do this:

if(character.y > gound.level1ground.y && character.x [...]) {
	character.y = ground.level1ground.y;
}

It’s better to set character.y to exactly the right value, rather than moving it bit by bit until the character is no longer touching.

As for the other thing, trace the value of touchingGround each frame. Does it stay true for as long as you don’t jump? Or does it toggle back and forth?

 
Flag Post

Topic: Serious Discussion / Extra-terrestrial disclosure

Originally posted by Aleazor:

People prefer the idea of aliens existing more than entertaining the implications of them actually existing.

Unfortunately… that does sound believable.

 
Flag Post

Topic: Game Programming / Platform Game. (Hit test theory)

Try this:

if (touchingGround)
{
	OnGround(getChildAt(c)).keepOnGround();
	getChildAt(c).y += 0.1;
}
 
Flag Post

Topic: Game Programming / Platform Game. (Hit test theory)

grav should not be 0. You took out the part where you set it to 0, right?

I’m not sure what’s wrong with the jumping. You didn’t post your jump-related code, so I can’t check it.

 
Flag Post

Topic: Serious Discussion / Extra-terrestrial disclosure

I’m not saying the phenomena didn’t happen, just that they probably (97%) were the result of human actions. (Well, 97% given that they happened as described, which I’d put somewhere between 40 and 70%.)

Anyway, feel free to speculate. I’ll go away and let you have your fun.

Originally posted by karmakoolkid:

I simply say that math can’t solve all issues…esp. if we don’t have a great amount of facts/data/etc. with which to work.

That is exactly what Bayes’ Theorem is for – drawing the best possible conclusions from limited evidence. It works in theory and in practice.

 
Flag Post

Topic: Game Programming / Platform Game. (Hit test theory)

What, as in it’s vibrating up and down? That’s what happens when you use hitTestPoint() rather than a math-based collision test.

The easiest workaround would probably be this:

touchingGround = false;
while (ground.level1Ground.hitTestPoint(getChildAt(c).x + 13, getChildAt(c).y, true) || ground.level1Ground.hitTestPoint(getChildAt(c).x - 13, getChildAt(c).y, true))
{
	OnGround(getChildAt(c)).incrementUp();
	
	touchingGround = true;
	
}

if (touchingGround)
{
	OnGround(getChildAt(c)).keepOnGround();
}
 
Flag Post

Topic: Serious Discussion / Extra-terrestrial disclosure

Originally posted by karmakoolkid:

THAT is what makes all of these occurrences all the more…..errrrr, INTERESTING to talk about,,,, to delve into,,,, to find answers and maybe even newer questions,,, to boldly go where no man has gone before.

So basically, I should go away if all I’m going to do is answer the question and ruin your fun?

Originally posted by karmakoolkid:

There is just waaaaaaaaaaay too much shit out there that has NO explanation yet for us to casually dismiss it all…..esp. to base that dismissal on some math improbability.

You don’t seem to have much respect for math. Is there any reason for this? Because ignoring the math can be dangerous.

 
Flag Post

Topic: Game Programming / Platform Game. (Hit test theory)

Instead of setting grav = 0;, you should set yV = 0;. Gravity should be a constant, and besides, it doesn’t look like you ever set it back to 0.6.

 
Flag Post

Topic: Serious Discussion / Extra-terrestrial disclosure

Did I ever call it “impossible”? Because I’m pretty sure I listed reasons why it isn’t impossible. Then I gave an estimate of 3% (not 0%).

Originally posted by karmakoolkid:

In other words….to show off this one bit of skill that ya do know about….eh?

Showing off? Maybe a little. But the personal attack was uncalled for.

Anyway, evidence and epistemology are very relevant to getting the correct answer; discussing it in the context of aliens is hardly off-topic.
Explaining the scientific method in a creationism thread wouldn’t be off-topic, would it?

 
Flag Post

Topic: Game Programming / Platform Game. (Hit test theory)

Velocity is speed and direction. Y velocity is vertical speed.

You have one variable for y position, and another for y velocity. You’re updating the position, but not the velocity, so the unit keeps moving upwards.

 
Flag Post

Topic: Serious Discussion / Extra-terrestrial disclosure

Originally posted by greg:

I’m not trying to impress you. I’m trying to encourage you to put some effort into researching this.

The math says there’s probably nothing going on beyond human activity, and there are plenty of other interesting things to research, so no.

And I guess as long as I’m being blunt, my purpose here doesn’t have to do with aliens at all. I’m just here to talk about evidence and epistemology.
Could I convince you to research Bayesian inference?

 
Flag Post

Topic: Serious Discussion / Extra-terrestrial disclosure

Ok, but now we’re back to where we started, with your claims being nowhere near impressive enough to point to anything other than human activity.

Prior probabilities, 8.8 billion planets, etc.

 
Flag Post

Topic: Serious Discussion / Extra-terrestrial disclosure

You made the claim that machines break down when exposed to crop circles. I suspected that this was coincidence or contrivance, so I considered what would actually happen if these things caused machinery to break.

One thing that would happen is, militaries would try to weaponize them. I mean, militaries weaponize everything. They wouldn’t pass up a way to destroy enemy artillery.

And yet you posted a video of a machine being exposed to a crop circle and not breaking down. I’m not impressed.

 
Flag Post

Topic: Serious Discussion / Extra-terrestrial disclosure

Originally posted by greg:

If you have some evidence that proves this wrong, then please present it.

Already done; see my first post.

The evidence takes the form of everything we know about life, the universe, and physics. The likelihood of aliens finding us is extraordinarily low, and you haven’t provided extraordinary evidence. That’s all there is to it.


However, if you insist on ignoring that prior probability and focusing on the events taking place on Earth, well… your argument still doesn’t hold up.

Get back to me when aliens start getting interviews on CNN, giving tours of their ships, and helping transport equipment into orbit. If “real” crop circles really destroy machinery, show me the reports of people using them to wipe hard drives and defuse bombs. Show me the news stories about soldiers taking cover in crop circles while being chased by tanks.


During college, I talked with some people who earnestly insisted that there was all sorts of evidence for psychic powers, that they knew people who pushed pens around with their mind, and communicated remotely, and predicted the future. They talked about all the YouTube videos “proving” it. They were every bit as convincing as you.

And yet, there’s a huge difference between this sort of “evidence” and how the world would actually look if the claims were true.


Extraordinary evidence is start-ups taking advantage of the phenomenon, and then turning into successful businesses. Extraordinary evidence is when extra-terrestrials start applying for work visas.

Extraordinary evidence is not “there have been a million claims of alien encounters, and you probably can’t disprove them all.” The onus is not on me to disprove them all. The onus is on you to provide better evidence.

 
Flag Post

Topic: Serious Discussion / Extra-terrestrial disclosure

Separate post for clarity.

To be fair, I should probably address a point Greg made in our verbal discussion. I brought up the concept of privileging the hypothesis, and he suggested that I might be doing that when I calculate the chance of aliens extra-terrestrials finding us.

If there was an easier way to locate intelligent life, they’d have a better chance of finding us. Likewise if they could search at a faster rate than light speed, by existing outside the universe or something. (Apparently Greg isn’t a fan of that particular limitation.) Or something else in the “miscellaneous” category.

It’s true. I made a potentially-invalid assumption, and did calculations based on that assumption. I assumed that the entities responsible for crop circles obey the laws of physics as we know them. (Wow – I really went out on a limb there, didn’t I?)

Again in the interest of fairness, there are possibilities that don’t violate the laws of physics.
Maybe they started on Earth before humans evolved, achieved space travel, hid all obvious traces, and come back every now and then. (Life already existed here, and life is step 1 on the path to intelligent life. It’s more likely than life evolving independently on a nearby planet.)
Maybe they evolved ten billion years ago, expanded across the whole galaxy, and have the resources to search every planet because their population is in the trillions.
Maybe they evolved ten billion years ago, dabbled in directed panspermia, and are now checking in on the results.
Maybe – as I realized after the discussion – the simulation hypothesis is correct.

None of these is likely (except maybe the simulation hypothesis), but collectively, they increase the chance of a non-human species being in the vicinity. The overall chance, I have to admit, is definitely more than 1 in 8,800.


Greg will tell you that I estimated a 40% chance, but that’s actually my upper bound, taking the above possibilities into account and leaving space for many more. He left before I could clarify that my actual estimate is closer to 3%.


Does this make sense to anyone? Or am I just rambling?

 
Flag Post

Topic: Serious Discussion / Extra-terrestrial disclosure

Originally posted by Mafefe_Classic:

Alien believers are anti science.

Science works by having a hypothesis and conducting experiments/research to reach a conclusion.

alien believers start with a conclusion and look for any evidence that supports it, while dismissing anything that proves them wrong.

To be fair, it’s possible to approach this from a scientific perspective. Take aliens as a hypothesis, and conduct after-the-fact research (of the statistical and forensic varieties) to judge its likelihood. This would probably count as science, if only the alien enthusiasts weren’t so prone (as you described) to confirmation bias.

But an equally big problem is privileging the hypothesis. To quote that page, “attention without evidence is more than halfway to belief without evidence.”

There’s no reason to come up with the “extraterrestrial” hypothesis based on the current evidence. Without any evidence of aliens in particular, even mentioning aliens is a fallacy. Aliens should fall squarely in the “miscellaneous” category.

Which is, of course, not what happens in practice, so you’re still right about calling it anti-science.

 
Flag Post

Topic: Game Programming / Platform Game. (Hit test theory)

You aren’t setting the velocity to 0.

I assume that’s what you meant by “stop y axis from +JumpHeight,” but in any case, you need to reset the y component of the character’s velocity.

 
Flag Post

Topic: Serious Discussion / Extra-terrestrial disclosure

Originally posted by karmakoolkid:

In truth, since 1974 we have been jumping up & down, waiving our hand vigorously in the air like some 4th grader that has to go potty in an effort to gain the teacher’s attention.

I was going to address this in the above post, but then I decided against it because it was so obviously a non-issue. A sphere 20 light-years in radius still only covers about four billionths of the galaxy. That’s less than a rounding error compared to the chances discussed above.

 
Flag Post

Topic: Serious Discussion / Extra-terrestrial disclosure

The thing to understand here is that there is a really low prior probability for aliens coming to Earth.

It’s not unreasonable to believe that aliens exist somewhere in the galaxy, but not many. And there would be even fewer (read: most likely 0) with space travel.

And even if they had space travel, Earth is one in approximately 8.8 billion habitable planets. If they explored a million planets, that’s a 1/8,800 chance of them finding us.

And again, that’s assuming that aliens exist in the galaxy, and that they have space travel, and that they’ve explored a million planets.

Extraordinary claims require extraordinary evidence, and this claim is even more extraordinary than it first appears.

 
Flag Post

Topic: Game Programming / Upload a Game Unpublished?

The name of your account does matter when uploading a game. The game’s url will contain your account name, and you won’t be able to change it.

I don’t think you can change an account name (normally. But you can make another account under the new name. Just make sure to do so before you upload the game.

 
Flag Post

Topic: Game Programming / Unity C# API Tutorials?

Edit: Ninja’d, and I forgot that this thread was about Unity.

I do want to note that Kongregate sometimes uses the “assets.kongregate.com” subdomain, and you’d probably want to allow your own site, so it would be better to do this:

SiteLock.Create("http://www.mydomain.com", "www.mydomain.com", "chat.kongregate.com", "assets.kongregate.com");
 
Flag Post

Topic: Game Programming / Trying to create a class variable within a class.

I don’t think that extra methods add much overhead. However, Vector3D happens to have a w component, which would add significant overhead if you use a lot of them.

 
Flag Post

Topic: Game Programming / Alpha Test Game Procedures?

Follow the normal steps for uploading, and you’ll eventually reach a preview page. As long as you don’t click the “publish” button, it won’t be released.

To let other players playtest it, click the “api information” link. On this page will be a “guest access url,” which you can give to friends and family.

 
Flag Post

Topic: Run Mobile / Why don't I have my duplicator runner unlocked

There isn’t (yet) a “report missing achievements” feature for mobile games, so the best I can suggest is try again. Log back in, and beat mission 12.