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.

Topics - Corerupted

Pages: 1 2
Modified Read Again

My first question is about a bug i get in my RPG game when i change scenes.
When I change the scene I told the actor to kill itself and it does because the scene first checks if actor exists before changing. But the error i have is that the actor that was killed is spawned TWICE and thus one is randomly in one of my props resulting in 2 player actors instead of just one. (attachment might help more than my explaination)

Second problem is with my AI movement. It works and moves but the delay fails meaning my mobs teleport to their end destination instead of a grid based delayed movement. Attached is an example of my coding and the code block basicly say more or less what i want to achieve. I find it strange that stencyl doesnt have a wait x seconds building block.

Hope this explains better

(I want my AI movement behaviour to cause my chosen actor to move randomly and that part is working but the actor in this case the enemy is just moving to the end position instantly instead of pausing X or N miliseconds after each displacement of 32 pixels)

My coding for Random AI Movement works with this concept:

- Calculate max distance (uses distance formula bla bla bla)
- Set times to move to a random number divided by grid block size ( this case 32 pixels)
- Repeat times to move times
   - Wait X or N seconds
   - set x or y position (x for left or right, y for up or down) to current position plus or minus 32
= Random AI movement

Bold, Underlined and Red are Atributes

Ask if u need more info but specify please

Ask a Question / Null field error
« on: November 13, 2013, 06:10:44 am »
Can some1 help they say i have a null field somewhere in method or function or whatever. i will attach my coding where the game system messages "`" says the error is.
Also attached is all other events for that behavior. say if i need to attach the other events with an added reason.
Lastly attached is my system messages or that is what i think it is called

Chit-Chat / everyone with a twitter account please help me
« on: October 17, 2013, 01:53:45 pm »
Please for a charity can u PLEASE tweet : #pabb #CokeRockCorps
As many times as u can and retweet everyone that tweeted under #pabb

its for a good cause and charity

What will the best working way be to create an inventory, i have been struggling for 3 weeks now without making any progress.
I have an inventory slot actor that i want to use
At least 25 slots should be made
should be created in a rect 5 x 5 (5 slots/coulumbs each row) with about 5mm between each slot
I must be able to track what the numbers of each slot is because items in inventory will be recorded with the slot number.
when i think of the other stuff i wanted to say then il post em but please help me for now.
Please if u suggest code please give an explaination and clearly explain how to use it because i havent learned stencyl's syntax

BTW  what/ where / how will be the fastest and eaiest way to learn the styntax for coding (i am a programmer i am working in delphi atm and have worked in scratch before) AND i <3 Love <3 programming

Ask a Question / Why doesnt my trigger work?
« on: October 09, 2013, 09:25:11 pm »
What can i dp to fix this or what would be a better method?

Ask a Question / When Drawing need Help
« on: October 02, 2013, 09:13:03 pm »
How do I anchor my drawing to the screen making it unable to move out of the screen?
Attched my game and life bar going out of screen and his coding

Resolved Questions / When Drawing[Solved]
« on: October 02, 2013, 08:12:07 pm »
How does the when drawing event know when its tiggered or is it like always updating?

Ask a Question / X and Y placement bugged [Help]
« on: September 29, 2013, 08:48:32 am »
Why is my actors not created at the border of my screen?
What can I do to fix this?
Where is my exp bar? Why isnt it created? Or why isnt it at least doing what my Health and Mana bar is doing?
When Created
Test Scene
Exp-Bar Actor
Please help me This is an important part of my game.
The when created is the only place where any coords for these objects is set. The movement is done with 8 way movement and another behaviour is cannot leave screen.
Also if i use the screen x and y, what point does it pick the middle, bottom left, bottom right, top right , top left, random points, the x and y of the characher, what???
Please Help this isnt supose to happen and i need to fix this. Any pro stencyler know what is going on with these actors?

Ask a Question / Why is my Actor Shifted Upwards and not downwards?
« on: September 28, 2013, 02:44:02 pm »
Please check the attached pictures:
1- The stats of the Behaviour
2- The coding of the Behaviour
3- What Happends in the game
The yellow block in the stats show the shifting over the y-axis
The yellow block in the game shows where my actor is
The Red block in the game shows where the actor should be
The Black arrow in the game shows to where the actor should move

Why is my Actor Shifted Upwards and not downwards?

Ask a Question / How to Resize an actor I created in a scene?
« on: September 28, 2013, 11:06:24 am »
How do I Resize an actor I created in a scene after I created it in its position? If not possible what must i do to achieve the same goal?
Its for my Health Bar, Mana Bar and Exp Bar in my RPG game

Ask a Question / Please help!!!: Armour and Weapons in RPG game
« on: September 28, 2013, 06:58:21 am »
What is the best way to use many different armour and weapons as items? is it better to create 50 actors for their respective item or what would be best?
I want an actor that looks like the armour following my player because he is kinda naked right now
what is the most effective way to do this?
And yes i am writing my own behaviours to do things like this thats why i need to know what and how.
and what is the best way to keep track of the stats of each item?

Ask a Question / Another question about saving {UPDATED CHECK AGAIN}
« on: September 28, 2013, 05:24:25 am »
Now I more or less understand the concept of saving (Understanding concepts is how i learn and remember)

The stats I want to save must be saved in a game atribute.
Is this a game atribute in the local atributes? or is it a Global atribute?
Must the save and load be a scene or actor behaviour?
Must the atribute belong to the saving and loading actor or something else?
Thank you all for helping me in my Creating Process,

Check my Last Post for the Update

Resolved Questions / Scene Crashing but why? [Solved]
« on: September 28, 2013, 04:09:27 am »
This is my error when I run my scene sadly I dont know the syntax so I honestly dont know what it means. What can I do to fix this?

Error: Error #1503: A script failed to exit after 30 seconds and was terminated.
   at cmodule.Box2D::FSM__Z12b2World_StepPvP8_AS3_Val/work()
   at Function/<anonymous>()
   at Function/<anonymous>()
   at Box2DAS.Dynamics::b2World/HandleStep()[/home/stencyl/]
   at Box2DAS.Common::b2EventDispatcher/dispatchEvent()[/home/stencyl/]
   at Box2DAS.Dynamics::b2World/Step()[/home/stencyl/]
   at stencyl.api.engine::GameState/innerUpdate()[/home/stencyl/]
   at stencyl.api.engine::GameState/postUpdate()[/home/stencyl/]
   at stencyl.api.engine::GameState/update()[/home/stencyl/]
   at org.flixel::FlxGame/update()[/home/stencyl/]

Ask a Question / How to use the save?
« on: September 27, 2013, 03:06:49 pm »
The post mostly only show what blocks to use can someone please help me how and where do i use this. im making an rpg i have 1 good guide's experience and small things i looked up as much as what i could and 1 year of scratch and 1 year of delphi but i am relatively new and enjoying making my game. i am working in ubnormal segments in the making process but finally i arrived at rewriting the preshiped behaviours into something i will be more comfortable in working with.
can you explain how to save by using some of my stats (not giving all my stats out yet)
Current Defence
Current Damage
Current Health
Current Level
and how to load it thank you
also attached is one of my bugged scenes the one image shows my scene in the stencyl creator
the other image shows my scene in flash.
Please help me idk why it does this and it messes up my collisions

Thank you all,

Ask a Question / How to Fix this?
« on: September 27, 2013, 01:02:34 pm »
This is my scene
"Starting Map"

This is what I get when I run
"Starting Map Bug"

Please help this also happens with my main menu but thats just a shift of the play button from top right to top middle
The zip contains the 2 pictures (My image linking does not work)

Pages: 1 2