Recent posts by ArcStudios on Kongregate

Flag Post

Topic: Game Programming / Questions.

whats your preferred program then Draco?

 
Flag Post

Topic: Game Programming / Text based rpg

Aesica means buisiness too, you really can easily, so easily skip over something or just completely fail at reading thanks to your brain.

 
Flag Post

Topic: Game Programming / weird url issue

So I changed my tumblr to use my new domain.
so its username.mywebsite.com instead of username.tumblr.com

when at my website, i click on the link to my tumblr, but the url in the top of my browser doesnt change. So by looking at that, it seems I am at my website url, but I’m not, I’m at my tumblr url.

Just tried it with firefox as well as my default opera, and same thing. If I go to my tumblr, the url in the browser doesnt change to show the new location.

Is this abnormal behavior?

Edit: hmm I think its my html actually, because if I go to kongregate instead, same thing. Sorry I wasted your time, I’ll post the solution once I find it.

E: wow this still seems kind of abnormal, its like I permanently break it. Once you click on one of the links, it never changes the destination url the entire time you are on the website, for example I went to my kong profile and then went back to here in the forums and the destination url is still my website, lol. But I bet its just my html errors.

 
Flag Post

Topic: Game Programming / flash not sending email

actually I think its because I didn’t setup my php.ini hold on…
E: ok I have a few reasons for why this may not be working.
A) because I use comcast, and because of that my port 25 may be being blocked, which I think I can confirm forwarding my port 25 doesnt allow canyouseeme to reach my port 25.
B) my config files are not set properly
C) xampp alone I dont believe has the capability, so you were right.

my solution is to try to use stmp.gmail.com as a relay potentially, we’ll see how it goes.
Thankfully my code should work in theory and the finished product is for my client whom this code will probably work for.
I’ll post back how my solution went, I’m wary of diving into these config files to set it up but it must be done.
Not sure though, gmail uses port 465 and I think comcast may be blocking that port as well.

 
Flag Post

Topic: Game Programming / flash not sending email

ah yes, i see that there was now, now I’ve changed it to this but still no email, even with this direct approach.

<?php
    $to = "arcstudios[at]hotmail.com";
    $subject = "subject";
    $message = "Message";
    $from = "testBot";
    $headers = "From: $from";
    mail($to,$subject,$message,$headers);
    echo "Successfully sent";
?>
 
Flag Post

Topic: Game Programming / flash not sending email

In my website folder is the swf file and php file, the same place my default page is index.html

In my index.html file, in the header i embed flash

<object width="300" height="100">
<param name="movie" value="Untitled-1.swf">
<embed src="Untitled-1.swf" width="300" height="100">
</embed>
</object>

the flash file simply sends an email upon loading.

public function Main()
{
	var variables:URLVariables = new URLVariables();
	variables.to = "whoever";
	variables.message = "text";
	variables.subject = "subject";
	var request:URLRequest = new URLRequest( "yourScript.php" );
	request.method = URLRequestMethod.POST;
	request.data = variables;
	var loader:URLLoader = new URLLoader();
	loader.addEventListener(Event.COMPLETE, onComplete );
	loader.load( request );	
}
private function onComplete( e:Event ) : void
{
	trace( URLLoader( e.target ).data.toString() );
}

But upon going to my website, and then checking my email nothing has sent. I’m using XAMPP to host my website, but php is enabled. So that shouldn’t be an issue. Is there a port that should be open? Is my syntax wrong?

 
Flag Post

Topic: Game Programming / Haxe/OpenFL primer -- If Flash dies, this is your lifeboat

playerio has moved to yahoo, another sign?

 
Flag Post

Topic: Game Programming / my website

oh interesting, I thought I could just throw together an html page. Thank you for sharing this sumgato, ill make good use of this testing website to fix these issues.

oh WOW. 49 errors?? lol i am terrible at html
at least it looks pretty from my point of view.. time to knock some of these out.

 
Flag Post

Topic: Serious Discussion / Plasma projectiles?

I know there isn’t anything known as a “graviton” it was an entirely fictional concept to explain holding together the plasma. lol
Doesn’t large mass cause gravity? And thats why the moon has much lower gravity, because its smaller and doesnt have as much tug. I haven’t read einsteins theory of relativity yet so I assume we don’t know what really “causes” gravity, we only know that mass mathmatically equals a certain amount of gravity? Thank you for the links.

 
Flag Post

Topic: Serious Discussion / Plasma projectiles?

in the ficional game series XCOM you can research and unlock plasma weapons. A game based off of xcom called Xenonauts you can also do this and the description for the the weapon talks about using a “graviton emitter” to keep the plasma together or else it will disperse into hot gas.

In the real world is this really how we theorize using plasma as a projectile? keeping the plasma together somehow and casting it. And is this really how plasma behaves?

 
Flag Post

Topic: Game Programming / my website

Ok, now it should be live..?
Any tips you guys can give me on general security?
Hosting this myself : )
E: woo, I am live then. Thank you.

 
Flag Post

Topic: Game Programming / my website

 
Flag Post

Topic: Game Programming / my website

can you guys access (removed by OP) ?
it works when i access it from my computer, but when i go into the next room and try to go to it, it takes a few minutes of loading and then cant display page.
Edit: nope, my port is still not open, nevermind.
Edit: Ok. Hows it look now?

 
Flag Post

Topic: Game Programming / [Unity] Animation State Machine

I dont know anything about unity but…
Whats the WrapMode set to? Does it inherit anything that could be causing this unexpected behavior?

animation
WrapMode
Possibly Similar issue

 
Flag Post

Topic: Game Programming / Mochi Shutting Down

Originally posted by FlashGrenade:

Don’t look at this as a sign that Flash is no longer a viable means to create solid games.
True Flash is no longer supported as a must have in web and mobile development,
which is probably one of the reasons that MochiAds is now shut down. But you can still
make a killer game in as3, port it out to the mobile devices and get your ad revenue from there.

Hijack. Whats the “next thing” then? Unity? Are we doomed to stop creating games for computer and make them instead for smart phones and other smart devices? lol I spent years of my life getting better at as3… _

 
Flag Post

Topic: Game Programming / Show us a screenshot of what you're working on!

@Draco18s Dude. That is sickkk. Is this something you’re just whipping up for fun, will I get to see it go public?

 
Flag Post

Topic: Game Programming / Game Maker Studio not Supported?

oh whaaaat. Thank you HTML5.
Now I can post my old as heck fusion games.

 
Flag Post

Topic: Game Programming / Random Word Generator

whaaaaat. I would get my money back.
I would pay someone to teach me 3.0, but not 2.0

 
Flag Post

Topic: Game Programming / PHP and as3

Alright I might as well redirect this post. When I get this php email form done and can access it with flash,
how can i keep this secure?
I’ll keep searching.

 
Flag Post

Topic: Game Programming / PHP and as3

i think i have to set my localHost. Hold on.
Edit: Yeah apparently I had to download something to work as a virtual server. Using XAMPP.

 
Flag Post

Topic: Game Programming / PHP and as3

Using phpDesigner 8
Trying to send an email with a flash application but i dont get it
I’m trying to send it to my own email to test it, but I’m not sure if it works this way. For now just trying to get the PHP part working.

Can you guys confirm this should be sending an email if it was programmed correctly?

I’m just running/debugging the application with phpDesigner

<h2>Feedback Form</h2>
<?php
if (!isset($_POST["submit"]))
  {
  ?>
  <form method="post" action="<?php echo $_SERVER["PHP_SELF"];?>">
  From: <input type="text" name="from"><br>
  Subject: <input type="text" name="subject"><br>
  Message: <textarea rows="10" cols="40" name="message"></textarea><br>
  <input type="submit" name="submit" value="Submit Feedback">
  </form>
  <?php 
  }
else
  {
  if (isset($_POST["from"]))
    {
    $from = $_POST["from"]; // sender
    $subject = $_POST["subject"];
    $message = $_POST["message"];
    $message = wordwrap($message, 70);
    mail("myemail@website.com",$subject,$message,"From: $from\n");
    echo "Thank you for sending us feedback";
    }
  }
?>
 
Flag Post

Topic: Game Programming / Random Word Generator

Yes, shuffling the array and splicing is one approach

var oneArray:Array = new Array("milk","cheese","bread");
var randomItem:String = oneArray[Math.floor(Math.random()*oneArray.length)];

var randomItem:String


this part creates a new variable and assigns it the String variable type.


= oneArray[…];


this part is assigning randomItem an element inside the oneArray


Math.floor(Math.random()*oneArray.length)


Math.floor() rounds a decimal number that is inside of it down. For example whether a number is 5.1 or 5.9 it will round it down to 5,
Math.random() returns a random number between 0 and almost 1. We multiply the 0 to almost 1 by the length of oneArray to return a random number between 0 and the whole length of oneArray which in this case is 3. But theres an issue with this, our array doesnt have a item in slot 3 of the array.

Remember arrays store values starting at 0.
toast is 0, cheese is 1, milk is 2

Because we round down the value we get we get a value between 0 and 2.

 
Flag Post

Topic: Game Programming / A* Pathfinding on 2.5D (fake 3D) grid like old XCOM or Diablo

would this X, Y, Z plane of existance look almost like diamonds/jagged mountains if you connected the nodes? like a double sided pyramid? Thats what I’m picturing. Instead of deciding what row or collumn is closer, it would be thinking of about 34 directions I believe… 8 on the same plane, 8 going diagonally up, 8 diag down, and simply up and down on the Z.

 
Flag Post

Topic: Game Programming / A* Pathfinding on 2.5D (fake 3D) grid like old XCOM or Diablo

Wow. This is why you don’t stay up all night and decide to program when the sun rises.
I realized of course this isn’t working, because of the X and Y descrepency of the tiles positions being taken into account, and changing the perspective makes it appear that certain tiles are closer to other tiles when they are in fact, not.

Instead of using the actual X and Y values, I used the row and collumn values and it works great.

But while I’m here I might as well ask, how difficult would it be to add a Z value to this pathfinding?

 
Flag Post

Topic: Game Programming / A* Pathfinding on 2.5D (fake 3D) grid like old XCOM or Diablo

Taking a closer look at the specific paths they are choosing to take, I see that they move diagonally on the now diagonal grid fairly intelligently.
But They tend to try to take a curving route rather than a straight one if I have them move on the same axis in a straight line.