Hello, thanks for visiting GameML, if you are a Game Maker user, this is the site for you, please sign up, or login if you are already a member, or just browse the site! Welcome to GameML!

ATTENTION MEMBERS!!! USERS CAN NOW SIGN UP AGAIN!
Log in

I forgot my password

Search
 
 

Display results as :
 


Rechercher Advanced Search

Site Hits
Free hit counter
These stats started at 0 on July 7th 2009
GameML File Sharing
USERNAME: gamemladmin@gmail.com PASSWORD: gamemlsite Upload Here: http://gameml.iowoi.org/GameML-File-Sharing-h3.htmPlease add only games.
Create A GAMEML BLOG!
Make a Blog on GameML:http://gamemlblogs.wetpaint.com
Keywords


Subimages.

View previous topic View next topic Go down

Subimages.

Post by CarnivorousA on Mon Aug 31, 2009 6:27 am

Say I want a sprite (that can be created at any time) to have the same subimage as another object, how can I do that?

_________________
avatar
CarnivorousA
Moderator
Moderator

Posts : 1402
Points : 31972
GameML Reputation : 17
Join date : 2009-06-01
Age : 23
Location : At the bottom of the lake.

View user profile http://entertainmypeople.freeforums.org/index.php

Back to top Go down

Re: Subimages.

Post by gogame1315 on Mon Aug 31, 2009 7:46 am

Code:
with (instance_create(x,y,obj_sumpthing1)){image_index=obj_sumpthing2.image_index}

like that ?
avatar
gogame1315
GameML Adventurer
GameML Adventurer

Posts : 103
Points : 31785
GameML Reputation : 10
Join date : 2009-07-10
Age : 21

View user profile http://www.yoyogames.com/members/gamesgo1315

Back to top Go down

Re: Subimages.

Post by -js1210- on Mon Aug 31, 2009 7:42 pm

subimage=otherobject.image_index
avatar
-js1210-
Super 500 GML
Super 500 GML

Posts : 1298
Points : 32122
GameML Reputation : 27
Join date : 2009-06-02
Age : 22
Location : United States

View user profile http://www.yoyogames.com/members/js1210

Back to top Go down

Re: Subimages.

Post by CarnivorousA on Tue Sep 01, 2009 12:46 am

Thanks gogame, that worked Smile

_________________
avatar
CarnivorousA
Moderator
Moderator

Posts : 1402
Points : 31972
GameML Reputation : 17
Join date : 2009-06-01
Age : 23
Location : At the bottom of the lake.

View user profile http://entertainmypeople.freeforums.org/index.php

Back to top Go down

Re: Subimages.

Post by gogame1315 on Wed Sep 02, 2009 4:10 pm

Good Very Happy
avatar
gogame1315
GameML Adventurer
GameML Adventurer

Posts : 103
Points : 31785
GameML Reputation : 10
Join date : 2009-07-10
Age : 21

View user profile http://www.yoyogames.com/members/gamesgo1315

Back to top Go down

Re: Subimages.

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum