Class CCSpritePlus

#include <Geode/binding/CCSpritePlus.hpp>
classCCSpritePlus:publiccocos2d::CCSprite{ ... }
No description provided
Examples0
Public static methods2
staticCCSpritePlus*createWithSpriteFrame()

MacOS (ARM): 0x3e7aa4

MacOS (Intel): 0x481a30

Windows: Out of line

iOS: 0x1b7bc0

Android

Creates a sprite by a given sprite frame

Parameters

frame

the frame to give to the specific sprite
Return value
CCSpritePlus object and returns null if initialization fai *
staticCCSpritePlus*createWithSpriteFrameName()

MacOS (ARM): 0x3e7b54

MacOS (Intel): 0x481ad0

Windows: 0x47d80

iOS: 0x1b7c64

Android

Creates a sprite by a given sprite’s frame name

Parameters

frame

the frame or filename to give to the specific sprite
Return value
CCSpritePlus object and returns null if initialization fai *
Public member functions16
virtualvoidsetScaleX(
floatscaleX
)

MacOS (ARM): 0x3e7f84

MacOS (Intel): 0x481f60

Windows: 0x48240

iOS: 0x1b7ffc

Android

Sets X’s scale on itself and it’s followers

Parameters

scaleX

the scale of X to s *
virtualvoidsetScaleY(
floatscaleY
)

MacOS (ARM): 0x3e8008

MacOS (Intel): 0x481fe0

Windows: 0x482c0

iOS: 0x1b8080

Android

Sets Y’s scale on itself and it’s followers

Parameters

scaleY

the scale of Y to s *
virtualvoidsetScale(
floatscale
)

MacOS (ARM): 0x3e808c

MacOS (Intel): 0x482060

Windows: 0x48350

iOS: 0x1b8104

Android

Sets the Scale of itself and it’s followers

Parameters

scale

the scale value to s *
virtualvoidsetPosition()

MacOS (ARM): 0x3e7c34

MacOS (Intel): 0x481bc0

Windows: 0x47e40

iOS: 0x1b7cac

Android

Sets the position where the sprite will be at and it’s followers

Parameters

position

the position to place to the sprite and it's followe *
virtualvoidsetRotation(
floatrotation
)

MacOS (ARM): 0x3e7cac

MacOS (Intel): 0x481c40

Windows: 0x47ed0

iOS: 0x1b7d24

Android

Sets the sprite’s given rotation and it’s followers

Parameters

rotation

the rotation value to s *
virtualvoidsetRotationX(
floatrotationX
)

MacOS (ARM): 0x3e7d24

MacOS (Intel): 0x481cc0

Windows: 0x47f60

iOS: 0x1b7d9c

Android

Sets the sprite’s given rotation of X and it’s followers

Parameters

rotationX

the rotation of X to se *
virtualvoidsetRotationY(
floatrotationY
)

MacOS (ARM): 0x3e7d9c

MacOS (Intel): 0x481d40

Windows: 0x47ff0

iOS: 0x1b7e14

Android

Sets the sprite’s given rotation of Y and it’s followers

Parameters

rotationY

the rotation of Y to s *
virtualboolinitWithTexture()

MacOS (ARM): 0x3e7c20

MacOS (Intel): 0x481ba0

Windows: 0x47e20

iOS: 0x1b7c98

Android

Initalizes the sprite using a texture

Parameters

texture

the texture to initalize the sprite with
Return value
true if initalization succeede *
virtualboolinitWithSpriteFrameName(
charconst*frameName
)

MacOS (ARM): 0x3e7c14

MacOS (Intel): 0x481b80

Windows: 0x47e10

iOS: 0x1b7c8c

Android

Initalizes the sprite with a frame name

Parameters

frameName

the frame to initalize the sprite with
Return value
true if initalization succeed *
virtualvoidsetFlipX(
boolflipX
)

MacOS (ARM): 0x3e7e14

MacOS (Intel): 0x481dc0

Windows: 0x48080

iOS: 0x1b7e8c

Android

Sets flipX to itself and it’s followers

Parameters

flipX

the direction that the sprite should be flipped *
virtualvoidsetFlipY(
boolflipY
)

MacOS (ARM): 0x3e7ecc

MacOS (Intel): 0x481e90

Windows: 0x48160

iOS: 0x1b7f44

Android

Sets flipY to itself and it’s followers

Parameters

flipY

the direction that the sprite should be flipped *
voidaddFollower()

MacOS (ARM): 0x3e8110

MacOS (Intel): 0x4820e0

Windows: Out of line

iOS: 0x1b8188

Android

Adds a follower to the sprite

Parameters

follower

Something that will follow this spri *
voidfollowSprite()

MacOS (ARM): 0x3e81a8

MacOS (Intel): 0x482180

Windows: Out of line

iOS: 0x1b8208

Android

Attaches a sprite to the sprite. and other way around

you can think of this as attaching 2 lego blocks together and letting

it drag along.

Parameters

sprite

the sprite to attach to the main sprite and vice ver *
CCSpritePlus*getFollower()

MacOS (ARM): 0x3e8250

MacOS (Intel): 0x482220

Windows: Out of line

iOS: 0x1b8230

Android

Obtains the first following sprite if it has a follower on hand

Return value
nullptr if there is no follower avalib *
voidremoveFollower()

MacOS (ARM): 0x3e8160

MacOS (Intel): 0x482130

Windows: 0x483e0

iOS: 0x1b81cc

Android

Removes a specific following sprite from this sprite.

Parameters

sprite

follower sprite that will be remove *
voidstopFollow()

MacOS (ARM): 0x3e8200

MacOS (Intel): 0x4821d0

Windows: Out of line

iOS: 0x1b821c

Android

Stops this child sprite from following it’s given pare *

Fields5
;
No description provided
CCSpritePlus*m_followingSprite
;
No description provided
boolm_hasFollower
;
No description provided
boolm_propagateScaleChanges
;
No description provided
boolm_propagateFlipChanges
;
No description provided
Protected member functions0
Protected fields0
Derived classes3