The Dink Network

Reply to Re: Resizing sprite (among 1000 things more)

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
June 6th 2016, 07:21 PM
burntree.gif
I assume that instead of 'x' and 'y' you are going to use either actual values, or a proper variable, right?

When you use create_sprite, you still need to set the brain and sequence even though it should already be set in the function. For some reason you still have to set those independently. Also, why are you attempting to use a 1 brain. To just repeat a sequence, you need a 6 brain.

int &dink = create_sprite(..., ..., 6, 14, 1);
sp_brain(&dink, 6); //necessary even though it should be set by create_sprite
sp_seq(&dink, 14); // also necessary

edit: Shevek answered at the same time I was answering. He has your back.