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

Pages: 1 2 3 ... 5
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

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?


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

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....?

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.

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?


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

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..?

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?


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. "

Resolved Questions / [solved] need divison and remainders help
« on: September 07, 2014, 02:26:28 pm »
varA =42
VarB = 30

what do i enter to get VarC as 1 (basically varA/varB - no remainder required)??

Maths is not my thing...i want it so when two actors collide, one of the actors goes in the opposite direction

thanks :)

Ask a Question / Adjusting color palette of aactor animation in stencyl?
« on: September 05, 2014, 11:03:03 am »
Lo all, just getting back into Stencyl after a long layoff and loving 3.0 :)

In the below example, is it possible to adjust the green in the image to say, brown by adjusting something? Tint? Saturation?

Ask a Question / Null values in Lists
« on: June 26, 2013, 09:54:19 am »
I have a LIST of data, that may not have values in all fields, eg


I only want to use the fields that have data in. But I can't seem to reference the `null` fields so that I can accurately avoid using them. For example, this does not work

Any ideas on how to accurately gauge which fields are empty so i can ignore them? Reordering the list in any way is not a possibility.

iPhone / iPad / Android / Happy Faces Concentration
« on: June 26, 2013, 07:06:58 am »
This is a card matching game for kids :)

If anyone could download it and check it runs ok I would much appreciate it. It works perfect on the few devices I have available to test on but you can never have too much testing :)

Pages: 1 2 3 ... 5