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

Pages: 1 2 3 ... 33
1
Ask a Question / Drawing a line at an angle
« on: August 08, 2019, 01:08:14 pm »
I would appreciate any help on this, my brain is too tired to get this right.

I want to draw a line from a set starting point on screen (eg, 320,240) for 100 pixels at an angle of 36degrees

i can't see a code block to do the angle part...?

i suspect i need to calculate the end point first then draw a line to it directly

2
Ask a Question / Been away a while
« on: August 08, 2019, 07:47:41 am »
Hi all,

I used to live and breathe Stencyl a few years ago and then life got in the way. Thinking of getting back into it, just had two quick questions to help bring me up to speed;

1. I'm aware flash is being ended next year. Is this going to affect Stencyl in any way? If i recall right the games Stencyl makes are flash based.
2. Compile time, how is it now? I'm not saying it was slow when I was last using it, but you know how it is, you make a small change to the code and you have to test it. Repeat this 200 times a day :-\ Also, would adding more memory speed it up any?

Thanks!

3
Ask a Question / How to do a laser pointer that can be interrupted?
« on: February 03, 2019, 05:59:37 am »
Hope this makes sense. I've seen this in a fun game called Deadly 30 and would love to implement it in a game of my own.



You can see how the laser pointer goes directly towards the mouse pointer. As there is a zombie in the way, the laser is blocked from going further. If there was no zombie on screen to block it then the laser would go all the way to the mouse pointer, through it and off screen.

Any suggestions? Been thinking of this for ages but can't think of a way to achieve this

4
Ask a Question / Re: moving a created actor
« on: February 03, 2019, 05:50:10 am »
Make sure the actor is not set to "minimal" in its physics settings.

This was the issue thank you!

5
Ask a Question / refer an actor to the scene co-ords?
« on: February 03, 2019, 05:46:49 am »
I want to draw a line between an actor as it moves and a set of X,Y co-ords in the game scene. I can't find how to refer the actor to the scene co-ords. All co-ords refer to the space the actor takes up. Maybe it's not possible to draw from the actors draw event to the game scene....?

6
Ask a Question / Re: moving a created actor
« on: February 03, 2019, 04:10:27 am »
I placed the velocity block in "when created" and "when updating" and the actor doesnt move

7
Ask a Question / moving a created actor
« on: February 03, 2019, 03:49:39 am »
Getting back into stencyl after a long layoff and struggling to get the brain cells up and running again.

I am creating an actor when i click on screen. This works ok.

In the events for the actor I have;
- when created make self always active
- when updating kill self after leaving screen
- when drawing set velocity to dir zero degrees , speed 15 for self

The actor doesnt move. In physics/general it is allowed to move.

8
thanks!

9
Let's say i have a known set of co-ordinates like x=50 and y=50. The mouse is over at x=300 and y=400

How do I find out the angle of the mouse away from the set of co-ordinates so i can draw a line that direction?

thanks!

10
Ask a Question / Re: Draw text over actors head
« on: May 04, 2017, 04:57:21 am »
That did it thank you :)

11
Ask a Question / Draw text over actors head
« on: May 04, 2017, 04:36:24 am »
Why does this simple bit of code not work?



Text just isn't showing where it should. Text is definitely a different color to background. Font is used ok elsewhere in scene.

i think it's got something to do with the fact the actor is moving

12
Ask a Question / Actors are outlined? why?
« on: May 02, 2017, 04:50:33 am »
Just getting back into stencyl after a long layoff.

All my actors graphics seem to be outlined and I have no idea why?

This should be a 25px white square with a solid green 1px edge. But it's showing with some sort of pinkish outline halo effect..?

13
Ask a Question / Re: Reverse engineer game from SWF or .stencyl file?
« on: June 16, 2016, 08:54:07 am »
Ah poop.  :-\

14
Ask a Question / Reverse engineer game from SWF or .stencyl file?
« on: June 16, 2016, 07:40:48 am »
I can't seem to find the project files (.stencyl) for an old game of mine, though I seem to have the swf and final apk file. Is there anything I can do with these output files to get the `input` code that created them?

thanks!

15
Shared Resources / more than 500 premium sound effects for free
« on: December 07, 2015, 07:17:38 am »
Seems legit, hope it helps someone.

"Here are more than 500 premium sound effects – for free!
These sounds are hand-picked from their premium libraries to give you a taste of their work – all ready to be used in your current or future projects. "

http://www.asoundeffect.com/500-free-sound-effects/

Pages: 1 2 3 ... 33