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

Pages: 1 ... 4 5 6
76
Ask a Question / Re: Boomerang Effect
« on: August 24, 2016, 08:33:01 am »
sorry it took so long but I figured it out thanks to some videos about enemy ai... the code reads
boomerang event.
<<when [self] is [created].
((((do after [1.5] seconds.
((do every
  • seconds.

{set velocity to  dir: [[[atan2 (y:[[ yposition ]- [y of self]] x: [[xposition]-[x of self]]] as [degrees] degrees, speed: [20] for [self]}
(if <<[yposition] = [[y] of [self]> and <<[xposition] = [
  • of [ self]>>
[kill [self]]))))))
>>

then ive set the xposition and yposition attributes to constantly be links position
{when updating.
( set xposition to [
  • of [self])

( set yposition to [[y] of [self])
}


77
Ask a Question / Re: Boomerang Effect
« on: August 23, 2016, 02:00:16 pm »
its proven to be not so simple ive spent the last few hours trying many combinations including the ones you have described. but have noticed that I only get bugs if I use my actor attribute for link. should I have it set to something other than actor
?

78
Ask a Question / Boomerang Effect
« on: August 23, 2016, 11:15:34 am »
basically brand new to stencil and have a miniscule amount of programming knowledge. right now im making a fan based Zelda game with link as the main character. wondering how to make a boomerang that comes back to link after it hits something or goes out of screen bounds. please help im screwin up

Pages: 1 ... 4 5 6