Author Topic: Spinning Cherry?  (Read 2766 times)

Realtime911

  • Wannabe
  • Posts: 44
  • Deep Inside The Darkness,There Is One Truth Folded
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 32.0 Firefox 32.0
    • View Profile
  • Playstyle: Keyboard
Spinning Cherry?
« on: April 16, 2015, 02:57:02 AM »
Can someone tell me how to make a spinning cherry attacks? like the one Flandere Scarlet attack on The Guy boss fight at KTK2?
Any help would be appreciated!
(Sorry if that is bad english)
The world will once be inverted, from the colorful world into the Monochrome world, the only color is white and black, you'll never see any color, except the 255 sub color they have.

And you'll be keep falling and falling and falling.
Until you reach the end of the world, a place where darkness is.

Sudnep

  • Global Moderator
  • Spike Dodger
  • Posts: 124
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 41.0.2272.118 Chrome 41.0.2272.118
    • View Profile
  • Playstyle: Keyboard
Re: Spinning Cherry?
« Reply #1 on: April 16, 2015, 06:32:50 AM »
i dont know why the code thing is squished. probably a bug with the new forums

Put this in the cherry step event
(click to show/hide)

Scripts to make it run.
(click to show/hide)

How to run it:

Run this script with variables associated like thie
Code: [Select]
with(delicious_fruit) { scrMakeCherrySpin(object,x,y,speed,direction,radiusMax,radiusDev) }object =  object name ( if no object set it to 1 )
x = if no object, set this to x pos you want it to rotate around
y = if no object, set this to y pos you want it to rotate around
speed = how fast it rotates around object / x,y cord
direction = 1 for clockwise; 0 for counterclockwise (i forgot which one it is)
radiusMax = maximum radius it is allowed to expand to (for cases where you want the circle thing to expand out a certain amount)
radiusDev = the speed at which it expands

This is what I use to make shit spin. There are probably easier ways but this is how I do it.

« Last Edit: April 16, 2015, 08:39:43 AM by Sudnep »

RandomFangamer

  • Cherry Eater
  • Posts: 71
  • Pico Pico Piiiiiii
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Mozilla compatible Mozilla compatible
    • View Profile
  • Playstyle: Keyboard
Re: Spinning Cherry?
« Reply #2 on: April 17, 2015, 05:32:58 PM »
I think there is a way to make a sprite spin in the GameMaker Sprite editor





Of course, before you select this action you should double the canvas size and place the delicious fruit in the middle to keep the stem from getting chopped off




:ItsBoshyTime: o o o o o :denProgress: o o o o o :paraKid:

Realtime911

  • Wannabe
  • Posts: 44
  • Deep Inside The Darkness,There Is One Truth Folded
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 42.0.2311.90 Chrome 42.0.2311.90
    • View Profile
  • Playstyle: Keyboard
Re: Spinning Cherry?
« Reply #3 on: April 17, 2015, 07:51:54 PM »
Finally it works, Thank you for all replies!
The world will once be inverted, from the colorful world into the Monochrome world, the only color is white and black, you'll never see any color, except the 255 sub color they have.

And you'll be keep falling and falling and falling.
Until you reach the end of the world, a place where darkness is.

Zurai

  • Community Manager
  • Spike Dodger
  • Administrator
  • Posts: 170
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 42.0.2311.90 Chrome 42.0.2311.90
    • View Profile
  • Playstyle: Keyboard
Re: Spinning Cherry?
« Reply #4 on: April 25, 2015, 02:03:35 AM »
I think there is a way to make a sprite spin in the GameMaker Sprite editor





Of course, before you select this action you should double the canvas size and place the delicious fruit in the middle to keep the stem from getting chopped off

Never do that! It takes way to much time. To make an object rotate around it's own x/y axis just put into the step-event of that object: image_angle += x.
That means, that every step (frame) the sprite angle of that object is rotated by x. As higher x, as faster it rotates. For clockwise rotation just use "image_anglé -= 5.
Important note: The origin of the sprite as to be the centered. So double-click on the sprite and click on "center". Done!
Stop by and say hello at www.twitch.tv/zurairofl :PogChamp:

RandomFangamer

  • Cherry Eater
  • Posts: 71
  • Pico Pico Piiiiiii
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Mozilla compatible Mozilla compatible
    • View Profile
  • Playstyle: Keyboard
Re: Spinning Cherry?
« Reply #5 on: April 27, 2015, 04:28:56 PM »

Never do that! It takes way to much time. To make an object rotate around it's own x/y axis just put into the step-event of that object: image_angle += x.
That means, that every step (frame) the sprite angle of that object is rotated by x. As higher x, as faster it rotates. For clockwise rotation just use "image_anglé -= 5.
Important note: The origin of the sprite as to be the centered. So double-click on the sprite and click on "center". Done!

Thanks Zurai, I may use this in my game :denMiku_v2:




:ItsBoshyTime: o o o o o :denProgress: o o o o o :paraKid: