Stencyl 3.4.0 is now out. Get it now!

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

Pages: 1
1
Ask a Question / Re: How do I get the spear to behave the way I want it to?
« on: November 15, 2017, 12:16:55 pm »
Thank you! That is very helpful. I will try this and then update this post if I succeed,

2
Ask a Question / Re: How do I get the spear to behave the way I want it to?
« on: November 15, 2017, 11:57:54 am »
Have you gone into Physics and made sure the spear is not affected by gravity?

Please refer to this post I made:

Eventually, mobile. The screen is 1920 x 1080, since that was the default size for my background images. What size do you think is better?

Also, all of my objects are not affected by gravity, spear included. I double checked to be sure.

3
Ask a Question / Re: How do I get the spear to behave the way I want it to?
« on: November 15, 2017, 11:05:53 am »
Okay well... I made a few changes to the dimensions. It seems a bit better.

As for the spear... It's behaving differently, but not as I want it to. It's still drifting to the corner. I'm attaching a screenshot of the changes I made to the spear's events.

Here is the game now: http://www.stencyl.com/game/play/37804

4
Ask a Question / Re: How do I get the spear to behave the way I want it to?
« on: November 14, 2017, 03:24:09 pm »
Eventually, mobile. The screen is 1920 x 1080, since that was the default size for my background images. What size do you think is better?

Also, all of my objects are not affected by gravity, spear included. I double checked to be sure.

5
Ask a Question / How do I get the spear to behave the way I want it to?
« on: November 14, 2017, 01:02:52 pm »
So, I have a player, three zombies, and a spear. I want my spear to begin at my player, travel where my mouse clicks, and then die when it either hits a zombie or goes off screen.

Right now, when I click, the spear begins at my click, and just sort of wanders off to the bottom right of the screen.  I don't understand why it sort of crawls towards the bottom right corner... and I don't know how to get it to do what I want.
Right now, my player has the following events attached:
-When updating, if right is down, set X-speed to player speed for self... (basically WASD movement)
-When the mouse is pressed, create spear at (x: x of self y: y of self) at Front
My spear has the following events attached:
-When Self hits a zombie - 1st actor/actor of type,  kill self.
-When  Self exits the screen, kill self.
-When updating, set x-speed to [Spear Speed] for self; set y-speed to [Spear Speed] for self.
-When created,  set x to [x of mouse press] for self; set y to [y of mouse press] for self.

The game as it currently runs does this: http://www.stencyl.com/game/play/37802


6
Okay, I figured it out. I resized the images after they entered the scene, but the borders of those images remained. The assets kept hitting the actual borders of things instead of what appeared on the screen. Thank you.

7
This is a multi-faceted problem, but I think they can all be solved if I address just one.

Here is a preview of my game in its current state: http://www.stencyl.com/game/play/37794

Firstly, the scene should look like this: (See "scene screencap") but when the game is loaded, it looks smaller.
Additionally, when the player moves, the player collides with invisible barriers.
What is causing this problem, and how do I solve it?

I have also included screenshots of all of the events I've added to the player.

Pages: 1