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.


Messages - SunYatSen

Pages: 1 2 3
31
Resolved Questions / Re: Converting Float to Int?
« on: April 23, 2015, 05:29:29 am »
Cool it worked! Thanks guys, helpful as always! :D

32
Resolved Questions / Converting Float to Int? [SOLVED]
« on: April 22, 2015, 06:07:49 pm »
Hello all!

I am trying to integrate a website's API into my game and am trying to put it a scoring system. I have a score attribute(that I made with code block), however, when I make a call to the API code, it (the API code) expects an integer value. Since Stencyl seems to automatically make number variables into floating point numbers, does anyone know how to convert that float to an int? I looked around and tried a few things, but couldn't get it working. I could also just create a new variable using code, but that too I am a little lost at. If anyone had any idea how to do any of these(changing types would be preferred!) I would really appreciate it! Thanks :D
Tried using:
int(x:Float):Int

that I found on http://api.haxe.org/Std.html#parseFloat  , but I'm pretty novice at coding so unsure what I keep getting errors when trying to launch game.

33
Ask a Question / Importing custom preloader help
« on: April 12, 2015, 06:07:33 am »
Hello,

My game recently got sponsored, but I am having difficulty figuring out how to put the website's preloader into my game. The preloader file they sent me is an .fla file, from what I've looked at it seems this might be impossible to import into stencyl?! Kinda lost, so any help would be greatly appreciated! :D

34
Ask a Question / Re: Squishy Physics
« on: April 11, 2015, 06:22:04 pm »
Great, Thanks! I think that "fake" version will work fine for me, that is if I can manage to figure out the code! :D

35
Ask a Question / Squishy Physics
« on: April 10, 2015, 07:10:10 am »
Hello,

I was wondering how to go about creating an actor that would react and change shape based on the things around it, like for example the player controls a slime and when you hit a wall the parts on the slime all bunch up against the wall. Or like how sushi cat responds to the things he hits and squishes against them before bouncing back.

Thanks

36
Ask a Question / Re: Highlighting specific words in text?
« on: January 03, 2015, 12:53:13 pm »
Thanks for the reply! I am not trying to do a typewriter effect. All the text appears at one time, hopefully that makes it simpler. If it's not too difficult to explain, how would I go about changing the font color on runtime?  ???

Worst case scenario I'll just leave a gap in the text and add the highlighted text as its own thing separately in the gap.


37
Ask a Question / Highlighting specific words in text?
« on: January 03, 2015, 11:26:56 am »
Hello!

In my game there is a character that informs the player about a new obstacle or enemy when he/she encounters it. I have been trying to figure out if there is a simple way that I could highlight (change the color of) specific words in the character's dialog that may be more important than the others. Similar to how the Zelda games always have the word Ganon in a different color than the other words in the dialog. There is probably a super easy solution, I just can't figure it out!

Any help would be AWESOME! THANKS!!  :D

38
Ask a Question / Re: "Already Purchased" feature?
« on: September 26, 2014, 06:59:41 am »

Perfect! Exactly the kind of thing I was looking for thanks man!  :D

39
Ask a Question / "Already Purchased" feature?
« on: September 25, 2014, 07:10:25 am »
Hello!

In my game I have a shop where you can purchase a variety of upgrades and costumes for your character. I want to make it so when you purchase the item, the item will become 'sold out!' and you cannot buy it again. The problem is if you leave the shop and then return later, you will be able to purchase the item again, even though you already have it.

Obviously I can create an attribute for EACH item in the shop that determines individually if the item was bought or not, to fix the problem, but I was just wondering if there was a better way to do this, like perhaps only having one attribute, but applying it separately for each item in the shop. Or something similar.

Help would be greatly appreciated. Thanks!  ;D

40
Ask a Question / Cant export game to SWF!?!?
« on: July 21, 2014, 05:38:00 pm »
 Hi, I have a problem that I really hope someone can help with.

Ive been working on a flash game for a couple of months and i cant seem to export it to a .swf file. Iv'e been reading the forums and I cant seem to find the problem. I deleted all of my sound files, but the problem persists. Ive included the log files in the hope that someone will find the problem, I've been looking through he log but I cant seem to find the problem. I get the '90% memory usage' message often, and I haven't updated stencyl in a while, I don't know if thats what it could be.

Help would be greatly appreciated. Thanks!


41
Windows / Mac / Flash / HTML5 / The Good, The Bad, and The Hungry!
« on: October 05, 2013, 10:13:51 am »
Hey! I'm New to stencyl and I just finished my first game! Ive been working on it during my free time for past few months, so let me know how you like it!

http://www.stencyl.com/game/play/21728

Pages: 1 2 3