Be a Supporter!

Bit help with Stencyl?

  • 352 Views
  • 3 Replies
New Topic Respond to this Topic
Varjokani
Varjokani
  • Member since: Dec. 19, 2012
  • Offline.
Forum Stats
Member
Level 07
Artist
Bit help with Stencyl? 2013-05-01 07:31:08 Reply

Hi. I just started to build new game with Stencyl and somehow my I feel myself bit stupid when I can't understand how to add own coding there? I mean is it safe to just add your own code there? ^^'

And other question how I make block so my characther stays in one area and is not able to move away from there.
At the moment my character is able to move away from game area but is not able to move there back. ^_^''


~Shadowrabbit from the hills..

furmensakume
furmensakume
  • Member since: Jun. 25, 2012
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to Bit help with Stencyl? 2013-05-01 21:50:51 Reply

At 5/1/13 07:31 AM, Varjokani wrote: Hi. I just started to build new game with Stencyl and somehow my I feel myself bit stupid when I can't understand how to add own coding there? I mean is it safe to just add your own code there? ^^'

And other question how I make block so my characther stays in one area and is not able to move away from there.
At the moment my character is able to move away from game area but is not able to move there back. ^_^''

In the Dashboard, go to Behaviors and create a new one, this will ask you for different modes such as "Design" mode and coding things yourself. I typically use the design mode much of the time with a very few minor complexities that you may or may not run into. For most things, design mode will work without an issue.

Regarding your other deal there, add a scene behavior so that the player or actor type or actor group cannot leave the screen, have it wrap around screen or bounce of screen, however you're designing whatever type of game it is you're making.

If by chance you're referring that the actor is falling off the screen falling towards the bottom and never to come back, you probably should go to the scene editor and disable the gravity in the physics. If you're making a platformer rather than a 4 or 8 directional RPG like system, then you'll probably want one of the default behaviors that come with Stencyl "Die in Pit and Reload".

Varjokani
Varjokani
  • Member since: Dec. 19, 2012
  • Offline.
Forum Stats
Member
Level 07
Artist
Response to Bit help with Stencyl? 2013-05-02 01:32:01 Reply

Thanks a lot. :-)

At 5/1/13 09:50 PM, furmensakume wrote:
And other question how I make block so my characther stays in one area and is not able to move away from there.
At the moment my character is able to move away from game area but is not able to move there back. ^_^''

~Shadowrabbit from the hills..

furmensakume
furmensakume
  • Member since: Jun. 25, 2012
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to Bit help with Stencyl? 2013-05-03 05:30:37 Reply

At 5/2/13 01:32 AM, Varjokani wrote: Thanks a lot. :-)

At 5/1/13 09:50 PM, furmensakume wrote:
And other question how I make block so my characther stays in one area and is not able to move away from there.
At the moment my character is able to move away from game area but is not able to move there back. ^_^''

Very welcome. I do highly recommend reading at least a once over on the Stencyl's official tutorials itself located on the company site, however if you're more visual of a learner, you can always hit up Youtube for tutorials. There's plenty there.