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 - Rukiri

Pages: 1 2 3 4 ... 6
16
Archives / Re: Setting the "functional" origin of an actor's sprite?
« on: February 13, 2012, 01:01:28 am »
I can vouch that Flashpunk has a built in command for this, dunno know about flixel (new to flixel in general). 
I do prefer flashpunk in general(of how it's laid out) but prefer stencyl as a whole(ironic isn't it?). 



17
If it helps that anyone that does this.
Box2d + Actionscript 3.
Has 2 examples, car and truck.
 http://www.emanueleferonato.com/2009/04/06/two-ways-to-make-box2d-cars/

18
Code: [Select]
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at stencyl.api.engine.actor::Actor/updateTweenProperties()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/root/stencyl/api/engine/actor/Actor.as:1291]
at stencyl.api.engine.actor::Actor/internalUpdate()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/root/stencyl/api/engine/actor/Actor.as:871]
at stencyl.api.engine::GameState/createActor()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/root/stencyl/api/engine/GameState.as:1008]
at stencyl.api.engine::GameState/loadActors()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/root/stencyl/api/engine/GameState.as:774]
at stencyl.api.engine::GameState/loadScene()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/root/stencyl/api/engine/GameState.as:543]
at stencyl.api.engine::GameState/begin()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/root/stencyl/api/engine/GameState.as:297]
at Function/<anonymous>()[/Users/erick/Desktop/Stencyl/autobuild/preview/scripts/MyAssets.as:120]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Looks like an actor issue, even being absolutely blank causes the error. Runs fine when I delete it.

19
Ask a Question / Re: Strings in arbituary code
« on: February 11, 2012, 12:14:40 pm »
The problem I'm actually having isn't to do with as3 or flixel at all,  If I try to do anything even simple function calls Flash will will not start.

I can use FlxText, FlxState etc, in code mode, just not in freeform mode. 
Is it possible that freeform simply isn't ready?

20
Ask a Question / Re: Strings in arbituary code
« on: February 11, 2012, 09:35:16 am »
FlxG.buffer

Use this to access the screen and draw whatever you want. You may want to get familiar with Flixel's and Flash's API.

Regarding the other errors, we need to know what's actually happening in order to help you.
That only brings up a black screen with an error message, it's a blank arbitrary file.
I fixed the black screen issue, but no text appears.

Code: [Select]
package scripts
{
//Changing the package name in code requires you to change the package name in properties as well

import flash.display.BlendMode;
import flash.events.*;
import flash.net.*;
import flash.filters.*;

import Box2DAS.Collision.*;
import Box2DAS.Collision.Shapes.*;
import Box2DAS.Common.*;
import Box2DAS.Dynamics.*;
import Box2DAS.Dynamics.Contacts.*;
import Box2DAS.Dynamics.Joints.*;

import stencyl.api.data.*;
import stencyl.api.engine.*;
import stencyl.api.engine.actor.*;
import stencyl.api.engine.behavior.*;
import stencyl.api.engine.bg.*;
import stencyl.api.engine.font.*;
import stencyl.api.engine.scene.*;
import stencyl.api.engine.sound.*;
import stencyl.api.engine.tile.*;
import stencyl.api.engine.utils.*;

import org.flixel.*;
import mochi.as3.*;
import flash.ui.Mouse;

public dynamic class Hello_Stencyl
{
public function Hello_Stencyl()
{

             FlxG.buffer
              call_text();
}
public call_text()
{
add(new FlxText(0,0,100,"Hello, World!"));
}
}
}

21
Did not know about this until 5 seconds ago, the biggest CELLULAR phone in production(What happened to going smaller?!)

Tablet meets phone, Apple would kill in this area as IMO nothing beats iPads touch sensitivity! Galaxy not even close! 

http://www.samsung.com/us/mobile/cell-phones/SGH-I717ZBAATT

22
Ask a Question / Strings in arbituary code
« on: February 11, 2012, 08:57:21 am »
I'm currently working with strings and want to use arbitrary code and just call it within an actor or scene where it's needed.

I found out that I can use the Draw method within the Code mode in arbitrary code as flash just won't load if it's in the script.

So how do I get my script to display text without using design or code mode?  Freeform mode offers way to much freedom, I also noticed I can't use String as again the Flash player refuses to load(when I call the script).

23
Ask a Question / Re: Freedom Mode?
« on: February 11, 2012, 07:37:58 am »
I don't know the details, since I don't have a Mac, but you can export your Stencyl project, add or change things in Xcode, then use Stencyl to build it.
That's pretty cool!

I'm having a hard time calling a class within an actor, I should be able to I mean..why not?

it's just a simple call to a class.
Code: [Select]
var text:Call_Text = new Call_Text();

24
Ask a Question / Re: Freedom Mode?
« on: February 11, 2012, 06:52:27 am »
I'm purchasing the iStencyl package on Monday(pay day woooooot!) hope they just have 1 purchase for mobile, but separate APIs and downloads.

Code: [Select]
At this time, you cannot insert arbitrary Objective-C code in a mobile project, so the option is removed. You can, however, add arbitrary code to your project in Xcode and still use Stencyl to publish it.

You lost me, since when does Stencyl support Xcode?  I've been totally out of the game since it's first release..

25
Chit-Chat / Re: Post Your Desktop!
« on: February 11, 2012, 05:43:57 am »
Awesome Mario wallpaper!

26
Ask a Question / Re: Freedom Mode?
« on: February 11, 2012, 05:21:48 am »
If it is a static class, yes, you could do that. Otherwise, in AS3, you have instantiate a class first. So, something like:
Code: [Select]
var myMenu:Menu = new Menu(arg1, arg2, arg3);
It's no different than ruby apparently, however are classes the same.

class something
  def initialize
    hey do something here.
  end
end

so calling it ruby is like so.

$game_something = something.new

and for all the definitions you would just do it like so.

$game_something.initialize (in as3 it's $game_something:initialize)

I'm coming from a ruby background but once this is all figured out coding wise it won't be much different especially when I want to bring my RPG Library from Ruby to Stencyl($20 once it's released, hopefully there will be some sort of pricing/payment on forge soon)

I also noticed freedom mode isn't in mobile & web when selecting a new blank template.

27
I recently wrote a full on RPG  Actor management system for stencyl and work perfectly in my flash test bed(pure Flash + Actionscript 3) so I brought it over to stencyl.

All syntax checked out okay then I get the 90% memory leak issue, and now I can test my game.. even a simple greeter script causes it to not open flash.

The main issue is, Flash is not opening on existing projects with freedom code.

I'm using a Macbook Pro with OS X 10.7.3.

28
Paid Work / Re: Enemy Walking/ Attacking AI
« on: February 11, 2012, 02:36:55 am »
I'll post a demo later today.

29
Gonna go play with em tomorrow, does android have support on OS X? as.. I don't have a PC as it's being prepared to sell.

30
Chit-Chat / Re: Any money in web games?
« on: February 11, 2012, 02:07:40 am »
There's not much demand for web games(or money) at least from what I see, OS X is a huge platform for apps and you can release to the app store (check Stencyl's pricing to release to the mac app store)

Release the phone version as free(like angry birds) but also have a desktop version at $5.

Don't go make an epic RPG and think cash will come, it will but not in large amounts right away.  Release them as chapters and it will create a fan base and release them once a month and that will create a cash flow.  This is how I plan to release my RPG on the desktop for Mac OS X, I will not release it on PC or Linux.

Pages: 1 2 3 4 ... 6