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

Pages: 1 2 3 ... 10
1
Check where the collision boxes are. To do this, look for and enable "Run > Enable debug drawing" in the menu bar.
If the collision box of the "bullet" are not where the actor is, it might be a bug because i have experienced this problem before

2
Ask a Question / Re: Firing when in range
« on: March 16, 2014, 08:07:56 am »
Scene > Actors

3
Ask a Question / Re: Collision Issue
« on: March 15, 2014, 07:26:11 pm »
The simplest way is to just add a small delay after your score increases to prevent it from adding up when colliding with your "empty space". Creating regions is just overkill

4
Ask a Question / Re: Collision Issue
« on: March 15, 2014, 12:49:05 pm »
- Make a boolean attribute called "Can gain points?" and set it to true as default
- Make a number attribute called "Collision delay" and set it to 50 as default. You can change this number if you want. 50 means points can be earned every 0.5 second.
- Make a number attribute called "Delay counter" and set it to 0 as default
- Now add an "If [Can gain points?]" block under your collision event and put your "Set score to..." under this if block
- Set the boolean attribute "Can gain points?" to false after you have set your score
- In the always event, increase "Delay counter" by one if ["Delay counter" < "Collision delay"]
- Otherwise set "Can gain points?" to true

5
Ask a Question / Re: Collision Issue
« on: March 15, 2014, 12:19:51 pm »
Add a delay after collision should fix the problem

6
Ask a Question / Re: Firing when in range
« on: March 15, 2014, 11:40:22 am »
Just calculate the distance between the "good guys" and the "bad guys" then pick the closest target for the "good guys"
If the closet target for the "good guy" is in range then fire.

Attributes:
Closest Target: use to store the closest target determined by the distance formula [actor]
Rate of Fire: delay the firing to make sure that bullets wont be fire every frame [number]
Rate of Fire counter: a counter that increases every frame until it reaches Rate of Fire then will be set to 0 [number]
Distance of Target: store the distance of the closest target [number]
Range of Fire: range of fire [number]
Bullet speed: speed of the bullets [number]
Group of target: group of target [actor group]
Projectile: actor type of bullet [actor type]

7
Ask a Question / Re: Firing when in range
« on: March 15, 2014, 10:36:38 am »
Use the distance formula to measure the distance between actor A and actor B
Check if the distance is close enough
If it is then actor A fires at actor B

8
Ask a Question / Re: Follow mouse with actor on extended scene?
« on: March 14, 2014, 10:13:55 pm »
Find and download "Camera Follow" by Rcoinb in StencylForge.
Remove "if mouse is down" block in your own behavior
Add the "if mouse is down" block to the Always event in the "Camera Follow" behavior (the new behavior you just downloaded) and drag everything in that event under the "if mouse is down" block.
Attach the new behavior to your actor and adjust the scroll speed

9
Ask a Question / Re: Follow mouse with actor on extended scene?
« on: March 14, 2014, 09:25:46 pm »
I don't have any experience with designing a mobile game. But I think you can just remove the "if" and "otherwise if" blocks and put in "Move camera to [self]" block. Also, if you want to control if the scene would move or not, then check if "mouse is down"

10
Ask a Question / Re: How do I install extensions?
« on: March 14, 2014, 09:20:08 pm »
Installation instructions:
As with all extensions you need to put the folder inside the plaf/extension directory from Stencyl.
- Locate the Stencyl workspace in File > Preferences
- Unzip the file in the extension folder
- Create a new game
- Goto Settings - Extensions - click on Enable behind the extension name
- Stencyl will tell you to close your current game and reopen
- After you have re-opened your Game you will find some blocks in the Custom panel

11
Ask a Question / Re: Save time
« on: March 14, 2014, 09:14:18 pm »
I followed Abigayl's tutorial when I first started but they are not videos however.
Sunrisekingdom's Tutorials are videos but they were too slow for me. Abigayl's tutorials are recommended by me if you want to learn the basics fast.
Note that both of those tutorials were created with Stencyl 2.0 so there might be some insignificant differences.
There are also more here: http://www.stencyl.com/help/tv/

12
Ask a Question / Re: Follow mouse with actor on extended scene?
« on: March 14, 2014, 09:09:40 pm »
How do you want the camera to move up and down with the mouse exactly? By pressing up and down keys? Or when the mouse is close the the edge of the screen?

13
Ask a Question / Re: Save time
« on: March 14, 2014, 08:55:31 pm »
It's very possible by using a game attribute.
"Game Attributes are changeable values that are stored along with a game and, thanks to saving and loading, can persist between gameplay sessions."
(More on game attribute: http://www.stencyl.com/help/view/game-attributes/)

- Make a game attribute (Settings > Attributes)

- Every time your actor "dies", set your game attribute to your best time (check if your recent time if greater than your game attribute time)

- After setting it to your best time, find the saving block "saving game and then..." block  in the Game tab and put it underneath.

- Your best score is saved but now you have to load your save every time you open the game right? To load your save, put the "load save file and then..." when your first scene is created.

Before asking questions please check the Stencylpedia :)
http://www.stencyl.com/help/toc/

14
Ask a Question / Re: Follow mouse with actor on extended scene?
« on: March 14, 2014, 08:43:32 pm »
- I added X and Y of camera to X and Y of mouse so that the actor wouldn't just move to the mouse positions (X and Y mouse positions are position of the screen, not the scene)

- Check: if mouse location is smaller or greater than half of the screen's height, then move camera's Y position to a new Y position (default of camera speed is 2; change it if you want)

15
Ask a Question / Re: text drawn behind actor
« on: March 14, 2014, 08:36:19 pm »
So where do you want the text to be drawn specifically?

Pages: 1 2 3 ... 10